[cairo-commit] libglc/src glc_agl_format.c,1.1,1.2 glc_agl_surface.c,1.1,1.2 glc_glx_format.c,1.5,1.6 glc_glx_surface.c,1.8,1.9
David Reveman
commit at pdx.freedesktop.org
Mon Aug 15 11:12:59 PDT 2005
- Previous message: [cairo-commit] cairo/src cairo.h,1.41,1.42 cairo_surface.c,1.21,1.22 cairo_xlib_surface.c,1.14,1.15 cairoint.h,1.49,1.50
- Next message: [cairo-commit] cairo-ocaml/src Makefile,1.2,1.3 cairo.ml,1.3,1.4 cairo.mli,1.3,1.4 ml_cairo.c,1.5,1.6 ml_cairo_bigarr.c,1.2,1.3 ml_cairo_channel.c,1.1.1.1,1.2 ml_cairo_wrappers.h,1.1.1.1,1.2 ocairo.ml,1.3,1.4 ocairo.mli,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: davidr
Update of /cvs/cairo/libglc/src
In directory pdx:/tmp/cvs-serv29053/src
Modified Files:
glc_agl_format.c glc_agl_surface.c glc_glx_format.c
glc_glx_surface.c
Log Message:
Single buffering fixes
Index: glc_agl_format.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_agl_format.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** glc_agl_format.c 3 Feb 2004 15:12:11 -0000 1.1
--- glc_agl_format.c 3 Feb 2004 16:34:51 -0000 1.2
***************
*** 203,206 ****
--- 203,209 ----
format->doublebuffer = 1;
*mask |= GLC_AGL_FORMAT_DOUBLEBUFFER_MASK;
+ } else {
+ format->doublebuffer = 0;
+ *mask |= GLC_AGL_FORMAT_DOUBLEBUFFER_MASK;
}
}
Index: glc_agl_surface.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_agl_surface.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** glc_agl_surface.c 3 Feb 2004 15:12:11 -0000 1.1
--- glc_agl_surface.c 3 Feb 2004 16:34:51 -0000 1.2
***************
*** 305,313 ****
if (!surface->window)
return;
!
glc_agl_context_push_current (surface,
GLC_CONSTRAINT_SURFACE_DRAWABLE_CURRENT);
!
! aglSwapBuffers (surface->context->context);
glc_agl_context_pop_current (surface);
--- 305,316 ----
if (!surface->window)
return;
!
glc_agl_context_push_current (surface,
GLC_CONSTRAINT_SURFACE_DRAWABLE_CURRENT);
!
! if (surface->format->doublebuffer)
! aglSwapBuffers (surface->context->context);
! else
! glFlush ();
glc_agl_context_pop_current (surface);
Index: glc_glx_format.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_glx_format.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** glc_glx_format.c 3 Feb 2004 15:12:11 -0000 1.5
--- glc_glx_format.c 3 Feb 2004 16:34:51 -0000 1.6
***************
*** 239,242 ****
--- 239,245 ----
format->doublebuffer = 1;
*mask |= GLC_GLX_FORMAT_DOUBLEBUFFER_MASK;
+ } else {
+ format->doublebuffer = 0;
+ *mask |= GLC_GLX_FORMAT_DOUBLEBUFFER_MASK;
}
}
Index: glc_glx_surface.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_glx_surface.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** glc_glx_surface.c 3 Feb 2004 15:12:11 -0000 1.8
--- glc_glx_surface.c 3 Feb 2004 16:34:51 -0000 1.9
***************
*** 352,359 ****
return;
! glc_glx_context_push_current (surface, GLC_CONSTRAINT_ANY_CONTEXT_CURRENT);
! glXSwapBuffers (surface->screen_info->display_info->display,
! surface->drawable);
glc_glx_context_pop_current (surface);
--- 352,363 ----
return;
! glc_glx_context_push_current (surface,
! GLC_CONSTRAINT_SURFACE_CONTEXT_CURRENT);
! if (surface->format->doublebuffer)
! glXSwapBuffers (surface->screen_info->display_info->display,
! surface->drawable);
! else
! glFlush ();
glc_glx_context_pop_current (surface);
- Previous message: [cairo-commit] cairo/src cairo.h,1.41,1.42 cairo_surface.c,1.21,1.22 cairo_xlib_surface.c,1.14,1.15 cairoint.h,1.49,1.50
- Next message: [cairo-commit] cairo-ocaml/src Makefile,1.2,1.3 cairo.ml,1.3,1.4 cairo.mli,1.3,1.4 ml_cairo.c,1.5,1.6 ml_cairo_bigarr.c,1.2,1.3 ml_cairo_channel.c,1.1.1.1,1.2 ml_cairo_wrappers.h,1.1.1.1,1.2 ocairo.ml,1.3,1.4 ocairo.mli,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list