From d7352d57b9ceb809d47c922ed8c820a44f8a0ee5 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Tue, 10 Jan 2012 15:24:36 +0800 Subject: [PATCH] Add glFinish after glFlush. Signed-off-by: Zhigang Gong --- glamor/glamor.c | 1 + glamor/glamor_gl_dispatch.c | 1 + glamor/glamor_gl_dispatch.h | 1 + 3 files changed, 3 insertions(+) diff --git a/glamor/glamor.c b/glamor/glamor.c index 3634e70da..6ee11f7b1 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -224,6 +224,7 @@ glamor_block_handler(ScreenPtr screen) glamor_gl_dispatch *dispatch = &glamor_priv->dispatch; dispatch->glFlush(); + dispatch->glFinish(); } static void diff --git a/glamor/glamor_gl_dispatch.c b/glamor/glamor_gl_dispatch.c index 5a47b4576..f8516b4d9 100644 --- a/glamor/glamor_gl_dispatch.c +++ b/glamor/glamor_gl_dispatch.c @@ -27,6 +27,7 @@ glamor_gl_dispatch_init_impl(struct glamor_gl_dispatch *dispatch, INIT_FUNC(dispatch, glBindTexture, get_proc_address); INIT_FUNC(dispatch, glTexSubImage2D, get_proc_address); INIT_FUNC(dispatch, glFlush, get_proc_address); + INIT_FUNC(dispatch, glFinish, get_proc_address); INIT_FUNC(dispatch, glGetIntegerv, get_proc_address); INIT_FUNC(dispatch, glGetString, get_proc_address); INIT_FUNC(dispatch, glScissor, get_proc_address); diff --git a/glamor/glamor_gl_dispatch.h b/glamor/glamor_gl_dispatch.h index 8fcb3dc96..a8a699b5c 100644 --- a/glamor/glamor_gl_dispatch.h +++ b/glamor/glamor_gl_dispatch.h @@ -41,6 +41,7 @@ typedef struct glamor_gl_dispatch { const GLvoid * pixels); /* MISC */ void (*glFlush) (void); + void (*glFinish) (void); void (*glGetIntegerv) (GLenum pname, GLint * params); const GLubyte *(*glGetString) (GLenum name); void (*glScissor) (GLint x, GLint y, GLsizei width,