diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-05-24 10:01:38 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-05-24 10:02:13 -0400 |
commit | f67b020a942911f80b7b774c6d64701d1981c608 (patch) | |
tree | 346fe4eb66b537070037f544cf632b88b1bf02ec /src/mesa/shader/program.c | |
parent | 740c8ea6d371732f3530accde44836930e03cc80 (diff) |
mesa: Handle FEATURE_es2_glsl differences at runtime too
Now that we can support different APIs at runtime, we need to check the
context for the API we're currently providing as well.
https://bugs.freedesktop.org/show_bug.cgi?id=28194
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r-- | src/mesa/shader/program.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index f77a773753..a6ada8a048 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -74,7 +74,8 @@ _mesa_init_program(GLcontext *ctx) #if FEATURE_NV_vertex_program || FEATURE_ARB_vertex_program ctx->VertexProgram.Enabled = GL_FALSE; #if FEATURE_es2_glsl - ctx->VertexProgram.PointSizeEnabled = GL_TRUE; + ctx->VertexProgram.PointSizeEnabled = + (ctx->API == API_OPENGLES2) ? GL_TRUE : GL_FALSE; #else ctx->VertexProgram.PointSizeEnabled = GL_FALSE; #endif |