[cairo-commit] glitz/src/glx glitz_glx_context.c,1.5,1.6

David Reveman commit at pdx.freedesktop.org
Mon Jul 4 03:33:03 PDT 2005


Committed by: davidr

Update of /cvs/cairo/glitz/src/glx
In directory gabe:/tmp/cvs-serv30344/src/glx

Modified Files:
	glitz_glx_context.c 
Log Message:
Fix GL_EXT_framebuffer_object support

Index: glitz_glx_context.c
===================================================================
RCS file: /cvs/cairo/glitz/src/glx/glitz_glx_context.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- glitz_glx_context.c	6 Jun 2005 12:28:40 -0000	1.5
+++ glitz_glx_context.c	4 Jul 2005 10:33:01 -0000	1.6
@@ -180,8 +180,17 @@
   
   if ((glXGetCurrentContext () != context->context) ||
       (glXGetCurrentDrawable () != drawable->drawable))
-    glXMakeCurrent (display_info->display, drawable->drawable,
-                    context->context);
+  {
+   if (display_info->thread_info->cctx)
+   {
+       glitz_context_t *ctx = display_info->thread_info->cctx;
+
+       if (ctx->lose_current)
+           ctx->lose_current (ctx->closure);
+   }
+   glXMakeCurrent (display_info->display, drawable->drawable,
+                   context->context);
+  }
 
   display_info->thread_info->cctx = &context->base;
 }




More information about the cairo-commit mailing list