intel: Corresponding FinishRenderTexture debug to BeginRenderTexture.
authorEric Anholt <eric@anholt.net>
Fri, 24 Sep 2010 18:20:16 +0000 (11:20 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 24 Sep 2010 23:12:50 +0000 (16:12 -0700)
src/mesa/drivers/dri/intel/intel_fbo.c

index 363a5c024257f64a0162c042fb19a0c2e461f086..4ad85eb7c1a1422c86458399ae4bd3ece0f09095 100644 (file)
@@ -598,6 +598,10 @@ intel_finish_render_texture(GLcontext * ctx,
    struct gl_texture_image *image =
       tex_obj->Image[att->CubeMapFace][att->TextureLevel];
    struct intel_texture_image *intel_image = intel_texture_image(image);
+   struct intel_renderbuffer *irb = intel_renderbuffer(att->Renderbuffer);
+
+   DBG("Finish render texture tid %lx tex=%u refcount=%d\n",
+       _glthread_GetID(), att->Texture->Name, irb->Base.RefCount);
 
    /* Flag that this image may now be validated into the object's miptree. */
    intel_image->used_as_render_target = GL_FALSE;