fix assertions
authorBrian <brian@i915.localnet.net>
Tue, 31 Jul 2007 14:22:18 +0000 (08:22 -0600)
committerBrian <brian@i915.localnet.net>
Tue, 31 Jul 2007 14:22:18 +0000 (08:22 -0600)
src/mesa/state_tracker/st_atom_framebuffer.c

index a8d47ea4f4f63235d97e06d07a2c9bc119d1520a..7edd044ad9ba2c0997d99ff1dc57c56a260c448c 100644 (file)
@@ -61,13 +61,13 @@ update_framebuffer_state( struct st_context *st )
 
    rb = st->ctx->DrawBuffer->_DepthBuffer;
    if (rb) {
-      assert(rb->surface);
+      assert(rb->Wrapped->surface);
       framebuffer.zbuf = rb->Wrapped->surface;
    }
 
    rb = st->ctx->DrawBuffer->_StencilBuffer;
    if (rb) {
-      assert(rb->surface);
+      assert(rb->Wrapped->surface);
       framebuffer.sbuf = rb->Wrapped->surface;
    }