}
+/**
+ * Swap buffers notification callback.
+ *
+ * \param ctx GL context.
+ *
+ * Called by window system just before swapping buffers.
+ * We have to finish any pending rendering.
+ */
+static void
+XMesaNotifySwapBuffers(struct gl_context *ctx)
+{
+ if (MESA_VERBOSE & VERBOSE_SWAPBUFFERS)
+ _mesa_debug(ctx, "SwapBuffers\n");
+
+ FLUSH_VERTICES(ctx, 0, 0);
+ if (ctx->Driver.Flush) {
+ ctx->Driver.Flush(ctx, 0);
+ }
+}
+
/*
* Copy the back buffer to the front buffer. If there's no back buffer
* we have to flush any pending rendering commands first.
*/
if (ctx && ctx->DrawBuffer == &(b->mesa_buffer))
- _mesa_notifySwapBuffers(ctx);
+ XMesaNotifySwapBuffers(ctx);
if (b->db_mode) {
if (b->backxrb->ximage) {
* we have to flush any pending rendering commands first.
*/
if (ctx && ctx->DrawBuffer == &(b->mesa_buffer))
- _mesa_notifySwapBuffers(ctx);
+ XMesaNotifySwapBuffers(ctx);
if (!b->backxrb) {
/* single buffered */
GLfloat _mesa_ubyte_to_float_color_tab[256];
-
-/**
- * Swap buffers notification callback.
- *
- * \param ctx GL context.
- *
- * Called by window system just before swapping buffers.
- * We have to finish any pending rendering.
- */
-void
-_mesa_notifySwapBuffers(struct gl_context *ctx)
-{
- if (MESA_VERBOSE & VERBOSE_SWAPBUFFERS)
- _mesa_debug(ctx, "SwapBuffers\n");
- FLUSH_VERTICES(ctx, 0, 0);
- if (ctx->Driver.Flush) {
- ctx->Driver.Flush(ctx, 0);
- }
-}
-
-
/**********************************************************************/
/** \name GL Visual initialization */
/**********************************************************************/
extern void
_mesa_init_constants(struct gl_constants *consts, gl_api api);
-extern void
-_mesa_notifySwapBuffers(struct gl_context *gc);
-
-
extern struct _glapi_table *
_mesa_get_dispatch(struct gl_context *ctx);