summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_fbo.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-17 10:27:37 +0100
committerBrian <brian.paul@tungstengraphics.com>2007-08-17 10:27:37 +0100
commit04f2078860d0649b016e9281f86725cb42e15b42 (patch)
tree2bbb651dbece85c0e116dc32cc3b1f848a3d32de /src/mesa/state_tracker/st_cb_fbo.c
parent24b2f3041090820b926b5902f0c6c65922874d68 (diff)
added assertions, disable debug output
Diffstat (limited to 'src/mesa/state_tracker/st_cb_fbo.c')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 7336327330..2b9aa3e9d2 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -104,6 +104,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
return GL_FALSE; /* out of memory, try s/w buffer? */
ASSERT(strb->surface->region->buffer);
+ ASSERT(strb->surface->format);
strb->Base.Width = strb->surface->width = width;
strb->Base.Height = strb->surface->height = height;
@@ -319,8 +320,10 @@ st_render_texture(GLcontext *ctx,
att->Zoffset);
assert(strb->surface);
+ /*
printf("RENDER TO TEXTURE obj=%p mt=%p surf=%p %d x %d\n",
att->Texture, mt, strb->surface, rb->Width, rb->Height);
+ */
/* Invalidate buffer state so that the pipe's framebuffer state
* gets updated.
@@ -344,7 +347,9 @@ st_finish_render_texture(GLcontext *ctx,
ctx->st->pipe->flush(ctx->st->pipe, 0x0);
+ /*
printf("FINISH RENDER TO TEXTURE surf=%p\n", strb->surface);
+ */
pipe_surface_unreference(&strb->surface);