aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/main.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-09-05 01:27:02 -0700
committerKenneth Graunke <[email protected]>2010-09-07 17:30:37 -0700
commit7dcfc44b72f00ba5a38cb02123c80113440f0de9 (patch)
treecb119dea4be95f12bab48bddf6f21cfd9ed9592b /src/glsl/main.cpp
parent719caa403ecc3345b86708f8172600d80132d6cb (diff)
glsl: Define GL_ES preprocessor macro if API is OpenGL ES 2.0.
Also define it if #version 100 is encountered.
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r--src/glsl/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 30f11a5a440..2323a204da1 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -130,7 +130,7 @@ compile_shader(struct gl_shader *shader)
const char *source = shader->Source;
state->error = preprocess(state, &source, &state->info_log,
- state->extensions);
+ state->extensions, API_OPENGL);
if (!state->error) {
_mesa_glsl_lexer_ctor(state, source);