[cairo-commit] src/cairo-gl-device.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Feb 15 06:07:51 PST 2013


 src/cairo-gl-device.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 41e646e019911f8e566e4f9963036117750f862f
Author: Henry Song <henry.song at samsung.com>
Date:   Tue Jan 29 17:30:25 2013 +0000

    gl: disable GL_DITHER
    
    GL_DITHER is enabled by default by spec. Leaving GL_DITHER enabled
    causes color pixel mismatch on some drivers by comparing uploading then
    readPixels and original image.

diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c
index 22297b3..b30c49c 100644
--- a/src/cairo-gl-device.c
+++ b/src/cairo-gl-device.c
@@ -725,6 +725,8 @@ _cairo_gl_context_set_destination (cairo_gl_context_t *ctx,
 #endif
     }
 
+    glDisable (GL_DITHER);
+
     glViewport (0, 0, surface->width, surface->height);
 
     if (_cairo_gl_surface_is_texture (surface))


More information about the cairo-commit mailing list