mesa: added renderbuffer->_BaseFormat assertion
authorBrian Paul <brianp@vmware.com>
Fri, 26 Feb 2010 02:03:24 +0000 (19:03 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Feb 2010 03:11:54 +0000 (20:11 -0700)
src/mesa/main/renderbuffer.c

index c44db255d62ac7b050b65f0777e6565b9798316c..4276b23b696da7975d153316bd7d4ccf9d46373f 100644 (file)
@@ -1143,6 +1143,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->InternalFormat);
+   ASSERT(rb->_BaseFormat);
 
    return GL_TRUE;
 }