diff options
-rw-r--r-- | progs/demos/winpos.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_buffer.c | 3 | ||||
-rw-r--r-- | src/mesa/main/framebuffer.c | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/progs/demos/winpos.c b/progs/demos/winpos.c index 2ee1df69fb..3a1a19ecdb 100644 --- a/progs/demos/winpos.c +++ b/progs/demos/winpos.c @@ -77,7 +77,7 @@ static void init( void ) WindowPosFunc = &glWindowPos2fARB; } else -#elif defined(GL_ARB_window_pos) +#elif defined(GL_MESA_window_pos) if (glutExtensionSupported("GL_MESA_window_pos")) { printf("Using GL_MESA_window_pos\n"); WindowPosFunc = &glWindowPos2fMESA; diff --git a/src/mesa/drivers/x11/xm_buffer.c b/src/mesa/drivers/x11/xm_buffer.c index 187ae516cf..a358ec25ae 100644 --- a/src/mesa/drivers/x11/xm_buffer.c +++ b/src/mesa/drivers/x11/xm_buffer.c @@ -355,8 +355,7 @@ xmesa_new_renderbuffer(GLcontext *ctx, GLuint name, const GLvisual *visual, /** * Called via gl_framebuffer::Delete() method when this buffer - * is _really_ being - * deleted. + * is _really_ being deleted. */ void xmesa_delete_framebuffer(struct gl_framebuffer *fb) diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index d061d22d9b..3fe70f449c 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -216,6 +216,7 @@ _mesa_free_framebuffer_data(struct gl_framebuffer *fb) GLuint i; assert(fb); + assert(fb->RefCount == 0); _glthread_DESTROY_MUTEX(fb->Mutex); |