From 41e646e019911f8e566e4f9963036117750f862f Mon Sep 17 00:00:00 2001 From: Henry Song Date: Tue, 29 Jan 2013 17:30:25 +0000 Subject: 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. --- src/cairo-gl-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c index 22297b33..b30c49cb 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)) -- cgit v1.2.3