Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joshua Ashton
mesa
Commits
561ae7a6
Commit
561ae7a6
authored
Aug 04, 2006
by
Brian Paul
Browse files
fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT
parent
f248927f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesa/main/attrib.c
View file @
561ae7a6
...
...
@@ -275,6 +275,8 @@ _mesa_PushAttrib(GLbitfield mask)
struct
gl_pixel_attrib
*
attr
;
attr
=
MALLOC_STRUCT
(
gl_pixel_attrib
);
MEMCPY
(
attr
,
&
ctx
->
Pixel
,
sizeof
(
struct
gl_pixel_attrib
)
);
/* push the Read FBO's ReadBuffer state, not ctx->Pixel.ReadBuffer */
attr
->
ReadBuffer
=
ctx
->
ReadBuffer
->
ColorReadBuffer
;
newnode
=
new_attrib_node
(
GL_PIXEL_MODE_BIT
);
newnode
->
data
=
attr
;
newnode
->
next
=
head
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment