diff options
author | Chia-I Wu <[email protected]> | 2010-07-03 16:41:55 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-07-03 16:48:36 +0800 |
commit | 40ef298641046d0455df9e177b14d33ba618f466 (patch) | |
tree | 40024b56bdb08184ff8f50f9786daaa52379e464 /src/mesa/main/uniforms.c | |
parent | c43ab4fe1fbb13bbfe70680c6c608ff0da73be9a (diff) |
mesa: Fix OpenGL ES-only builds.
Check FEATURE_GL in _mesa_init_shader_dispatch and
_mesa_init_shader_uniform_dispatch. OpenGL ES can not and does not use
_mesa_init_<...>_dispatch. This is supposed to be temporary. Ideally,
a more flexible way for initializing dispatch tables should be
developed.
Diffstat (limited to 'src/mesa/main/uniforms.c')
-rw-r--r-- | src/mesa/main/uniforms.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index cabdb0bdb6b..c869942d2eb 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -1293,6 +1293,7 @@ _mesa_GetActiveUniformARB(GLhandleARB program, GLuint index, void _mesa_init_shader_uniform_dispatch(struct _glapi_table *exec) { +#if FEATURE_GL SET_Uniform1fARB(exec, _mesa_Uniform1fARB); SET_Uniform2fARB(exec, _mesa_Uniform2fARB); SET_Uniform3fARB(exec, _mesa_Uniform3fARB); @@ -1336,4 +1337,5 @@ _mesa_init_shader_uniform_dispatch(struct _glapi_table *exec) (void) _mesa_Uniform2uiv; (void) _mesa_Uniform3uiv; (void) _mesa_Uniform4uiv; +#endif /* FEATURE_GL */ } |