diff options
author | Neil Roberts <neil@linux.intel.com> | 2011-08-01 11:00:59 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2011-08-01 14:05:09 +0100 |
commit | 93e69387cca6f16b025d34f5ded000af26984c14 (patch) | |
tree | 93f78e15b28eae9dc97c55d557493f9c83f29957 | |
parent | f7bdc92d6c397ae055c9ef8ae2a01293fbc99bd6 (diff) | |
download | cogl-93e69387cca6f16b025d34f5ded000af26984c14.tar.gz |
Add the missing check for COGL_FEATURE_POINT_SPRITE on the GL driver
The check for the point sprite feature got lost when the feature
functions header was combined for GL and GLES in dae02a99a.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r-- | cogl/driver/gl/cogl-gl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cogl/driver/gl/cogl-gl.c b/cogl/driver/gl/cogl-gl.c index 589d3da1..cc0cca16 100644 --- a/cogl/driver/gl/cogl-gl.c +++ b/cogl/driver/gl/cogl-gl.c @@ -209,6 +209,10 @@ _cogl_gl_update_features (CoglContext *context, _cogl_check_extension ("GL_EXT_pixel_buffer_object", gl_extensions)) flags |= COGL_FEATURE_PBOS; + if (COGL_CHECK_GL_VERSION (gl_major, gl_minor, 2, 0) || + _cogl_check_extension ("GL_ARB_point_sprite", gl_extensions)) + flags |= COGL_FEATURE_POINT_SPRITE; + if (context->glGenPrograms) flags |= COGL_FEATURE_SHADERS_ARBFP; |