[cogl] Add the missing check for COGL_FEATURE_POINT_SPRITE on the GL driver



commit 93e69387cca6f16b025d34f5ded000af26984c14
Author: Neil Roberts <neil linux intel com>
Date:   Mon Aug 1 11:00:59 2011 +0100

    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>

 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 589d3da..cc0cca1 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]