added assertions, disable debug output
This commit is contained in:
@@ -409,6 +409,8 @@ clear_depth_buffer(GLcontext *ctx, struct gl_renderbuffer *rb)
|
|||||||
{
|
{
|
||||||
struct st_renderbuffer *strb = st_renderbuffer(rb);
|
struct st_renderbuffer *strb = st_renderbuffer(rb);
|
||||||
|
|
||||||
|
assert(strb->surface->format);
|
||||||
|
|
||||||
if (!ctx->Scissor.Enabled &&
|
if (!ctx->Scissor.Enabled &&
|
||||||
!is_depth_stencil_format(strb->surface->format)) {
|
!is_depth_stencil_format(strb->surface->format)) {
|
||||||
/* clear whole depth buffer w/out masking */
|
/* clear whole depth buffer w/out masking */
|
||||||
|
@@ -104,6 +104,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
|
|||||||
return GL_FALSE; /* out of memory, try s/w buffer? */
|
return GL_FALSE; /* out of memory, try s/w buffer? */
|
||||||
|
|
||||||
ASSERT(strb->surface->region->buffer);
|
ASSERT(strb->surface->region->buffer);
|
||||||
|
ASSERT(strb->surface->format);
|
||||||
|
|
||||||
strb->Base.Width = strb->surface->width = width;
|
strb->Base.Width = strb->surface->width = width;
|
||||||
strb->Base.Height = strb->surface->height = height;
|
strb->Base.Height = strb->surface->height = height;
|
||||||
@@ -319,8 +320,10 @@ st_render_texture(GLcontext *ctx,
|
|||||||
att->Zoffset);
|
att->Zoffset);
|
||||||
assert(strb->surface);
|
assert(strb->surface);
|
||||||
|
|
||||||
|
/*
|
||||||
printf("RENDER TO TEXTURE obj=%p mt=%p surf=%p %d x %d\n",
|
printf("RENDER TO TEXTURE obj=%p mt=%p surf=%p %d x %d\n",
|
||||||
att->Texture, mt, strb->surface, rb->Width, rb->Height);
|
att->Texture, mt, strb->surface, rb->Width, rb->Height);
|
||||||
|
*/
|
||||||
|
|
||||||
/* Invalidate buffer state so that the pipe's framebuffer state
|
/* Invalidate buffer state so that the pipe's framebuffer state
|
||||||
* gets updated.
|
* gets updated.
|
||||||
@@ -344,7 +347,9 @@ st_finish_render_texture(GLcontext *ctx,
|
|||||||
|
|
||||||
ctx->st->pipe->flush(ctx->st->pipe, 0x0);
|
ctx->st->pipe->flush(ctx->st->pipe, 0x0);
|
||||||
|
|
||||||
|
/*
|
||||||
printf("FINISH RENDER TO TEXTURE surf=%p\n", strb->surface);
|
printf("FINISH RENDER TO TEXTURE surf=%p\n", strb->surface);
|
||||||
|
*/
|
||||||
|
|
||||||
pipe_surface_unreference(&strb->surface);
|
pipe_surface_unreference(&strb->surface);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user