[cairo-commit] glitz/src/agl glitz_agl_context.c,1.3,1.4

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


Committed by: davidr

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

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

Index: glitz_agl_context.c
===================================================================
RCS file: /cvs/cairo/glitz/src/agl/glitz_agl_context.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- glitz_agl_context.c	12 Apr 2005 14:54:56 -0000	1.3
+++ glitz_agl_context.c	4 Jul 2005 10:33:01 -0000	1.4
@@ -192,6 +192,14 @@
   
   if (update)
   {
+      if (drawable->thread_info->cctx)
+      {
+          glitz_context_t *ctx = drawable->thread_info->cctx;
+
+          if (ctx->lose_current)
+              ctx->lose_current (ctx->closure);
+      }
+   
       if (drawable->pbuffer) {
           aglSetPBuffer (context->context, drawable->pbuffer, 0, 0,
                          aglGetVirtualScreen (context->context));
@@ -205,7 +213,7 @@
           }
           aglSetDrawable (context->context, drawable->drawable);
       }
-
+      
       aglSetCurrentContext (context->context);
   }
   




More information about the cairo-commit mailing list