http://bugs.freedesktop.org/show_bug.cgi?id=7205





------- Comment #44 from [EMAIL PROTECTED]  2007-03-20 13:38 PST -------
Unfortunately, my DRI devel system is sidelined by a hardware problem.  In the
mean time, here's a patch that adds some debug output.  Could you try that and
post or send me the output?  It might give me a better idea of what's going on.
 Actually, you might need to change the _mesa_printf() calls to ErrorF().  I
can't remember if the former works inside the X server.

diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index cd4f594..2980555 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -264,6 +264,8 @@ _mesa_reference_framebuffer(struct gl_framebuffer **ptr,
    assert(fb);
    _glthread_LOCK_MUTEX(fb->Mutex);
    fb->RefCount++;
+   _mesa_printf("_mesa_reference_framebuffer %p, count = %d\n",
+                (void*) fb, fb->RefCount);
    _glthread_UNLOCK_MUTEX(fb->Mutex);
    *ptr = fb;
 }
@@ -285,6 +287,8 @@ _mesa_unreference_framebuffer(struct gl_framebuffer **fb)
       _glthread_LOCK_MUTEX((*fb)->Mutex);
       ASSERT((*fb)->RefCount > 0);
       (*fb)->RefCount--;
+      _mesa_printf("_mesa_unreference_framebuffer %p, count = %d\n",
+                   (void*) *fb, (*fb)->RefCount);
       deleteFlag = ((*fb)->RefCount == 0);
       _glthread_UNLOCK_MUTEX((*fb)->Mutex);



-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to