projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e215830
)
mesa: fix _BaseFormat assignment in _mesa_soft_renderbuffer_storage()
author
Brian Paul
<brianp@vmware.com>
Fri, 26 Feb 2010 16:03:31 +0000
(09:03 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Feb 2010 16:03:34 +0000
(09:03 -0700)
The rb->InternalFormat field will be set by the caller if the allocation
succeeds. Until then, this field's value can't be used. Fixes a failed
assertion with FlightGear.
src/mesa/main/renderbuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/renderbuffer.c
b/src/mesa/main/renderbuffer.c
index 4276b23b696da7975d153316bd7d4ccf9d46373f..2f4292404655eec6b2088a29edea725a07e98ef9 100644
(file)
--- a/
src/mesa/main/renderbuffer.c
+++ b/
src/mesa/main/renderbuffer.c
@@
-1142,7
+1142,7
@@
_mesa_soft_renderbuffer_storage(GLcontext *ctx, struct gl_renderbuffer *rb,
rb->Width = width;
rb->Height = height;
- rb->_BaseFormat = _mesa_base_fbo_format(ctx,
rb->I
nternalFormat);
+ rb->_BaseFormat = _mesa_base_fbo_format(ctx,
i
nternalFormat);
ASSERT(rb->_BaseFormat);
return GL_TRUE;