summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Song <henry.song@samsung.com>2013-01-29 17:30:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-15 12:00:38 +0000
commit41e646e019911f8e566e4f9963036117750f862f (patch)
tree8c70e627ddd086fed85a5e0a465911a74345ff76
parent02b467a28703a0bd68b92fb26f7905bf6a25bf7d (diff)
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.
-rw-r--r--src/cairo-gl-device.c2
1 files changed, 2 insertions, 0 deletions
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))