No subject


Sat Apr 16 03:17:07 PDT 2011


    EXT_gpu_shader4 or NV_vertex_program4 or OpenGL 3.0 is required.

which means we can't advertise it. :( Well at least apps won't be looking
for gl_InstanceID.
---
 src/mesa/state_tracker/st_extensions.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index bdc0894..3460fe0 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -560,7 +560,8 @@ void st_init_extensions(struct st_context *st)
       ctx->Extensions.ARB_shader_stencil_export = GL_TRUE;
    }
 
-   if (screen->get_param(screen, PIPE_CAP_TGSI_INSTANCEID)) {
+   if (ctx->Extensions.EXT_gpu_shader4 &&
+       screen->get_param(screen, PIPE_CAP_TGSI_INSTANCEID)) {
       ctx->Extensions.ARB_draw_instanced = GL_TRUE;
    }
    if (screen->get_param(screen, PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR)) {
-- 
1.7.1



More information about the mesa-dev mailing list