[cairo-commit] src/cairo-gl-device.c
Martin Robinson
mrobinson at kemper.freedesktop.org
Thu Jan 3 11:41:51 PST 2013
src/cairo-gl-device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c743e93451f467782b861c67a6894df26082d5c6
Author: Chuanbo Weng <chuanbo.weng at intel.com>
Date: Wed Jan 2 18:03:44 2013 +0100
gl: Support the GL_IMG_texture_npot extension
This extension, used by older PowerVR drivers, is functionally
equivalent to the GL_OES_TEXTURE_NPOT extension.
diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c
index 75d7d6d..8b545cf 100644
--- a/src/cairo-gl-device.c
+++ b/src/cairo-gl-device.c
@@ -222,7 +222,8 @@ _cairo_gl_context_init (cairo_gl_context_t *ctx)
return _cairo_error (CAIRO_STATUS_DEVICE_ERROR);
} else {
ctx->tex_target = GL_TEXTURE_2D;
- if (_cairo_gl_has_extension ("GL_OES_texture_npot"))
+ if (_cairo_gl_has_extension ("GL_OES_texture_npot") ||
+ _cairo_gl_has_extension ("GL_IMG_texture_npot"))
ctx->has_npot_repeat = TRUE;
else
ctx->has_npot_repeat = FALSE;
More information about the cairo-commit
mailing list