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>
This commit is contained in:
Neil Roberts 2011-08-01 11:00:59 +01:00
parent f7bdc92d6c
commit 93e69387cc

View File

@ -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;