st/mesa: expose ARB_ES2_compatibility if GL_FIXED vertex format is supported
authorMarek Olšák <maraeo@gmail.com>
Thu, 28 Apr 2011 18:01:02 +0000 (20:01 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 30 Apr 2011 10:02:01 +0000 (12:02 +0200)
Tested with softpipe and llvmpipe.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_extensions.c

index a5324df55497ed78b23f079b40a57d3e24ff7231..030bbc797fb1030cf117af604a4d491884b288fd 100644 (file)
@@ -515,6 +515,12 @@ void st_init_extensions(struct st_context *st)
       ctx->Extensions.ARB_half_float_vertex = GL_TRUE;
    }
 
+   if (screen->is_format_supported(screen, PIPE_FORMAT_R32G32B32A32_FIXED,
+                                   PIPE_BUFFER, 0,
+                                   PIPE_BIND_VERTEX_BUFFER)) {
+      ctx->Extensions.ARB_ES2_compatibility = GL_TRUE;
+   }
+
    if (screen->get_shader_param(screen, PIPE_SHADER_GEOMETRY, PIPE_SHADER_CAP_MAX_INSTRUCTIONS) > 0) {
 #if 0 /* XXX re-enable when GLSL compiler again supports geometry shaders */
       ctx->Extensions.ARB_geometry_shader4 = GL_TRUE;