gallium: new assertion on surface->texture
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2008 16:20:49 +0000 (10:20 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 17 Sep 2008 16:23:00 +0000 (10:23 -0600)
src/mesa/state_tracker/st_cb_fbo.c

index 8406bf247fcb655476715319b8c51362624c343d..00076f61e0f0870a1cbde3d1c66cfb8dd1014115 100644 (file)
@@ -170,6 +170,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
                                                   0, 0, 0,
                                                   surface_usage );
 
+   assert(strb->surface->texture);
    assert(strb->surface->buffer);
    assert(strb->surface->format);
    assert(strb->surface->block.size);