summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-07-28 15:20:48 -0700
committerIan Romanick <[email protected]>2012-08-29 15:09:36 -0700
commita010215463c63680c69e90202fe3fcd2e5b25fa6 (patch)
tree202346e7f12fd759cce2f72d5f96371d4c2768e5 /src/mesa/main/context.c
parentfc2219e4482c4b940ea32dbe8ad220a22c300f3d (diff)
mesa: Kill ES2 wrapper functions
v2: Fix completely broken condition around ClearColorIiEXT and ClearColorIuiEXT. v3: Add special VertexAttrib handling for ES2. Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index b78bceeb9e4..0a52a1a39e5 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -431,7 +431,7 @@ one_time_init( struct gl_context *ctx )
* when an app is linked to libGLES*, there are not enough dynamic
* entries.
*/
- if (_mesa_is_desktop_gl(ctx))
+ if (_mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES2)
_mesa_init_remap_table();
}
@@ -964,9 +964,10 @@ _mesa_initialize_context(struct gl_context *ctx,
#if FEATURE_dispatch
/* setup the API dispatch tables */
switch (ctx->API) {
-#if FEATURE_GL
+#if FEATURE_GL || FEATURE_ES2
case API_OPENGL:
case API_OPENGL_CORE:
+ case API_OPENGLES2:
ctx->Exec = _mesa_create_exec_table(ctx);
break;
#endif
@@ -975,11 +976,6 @@ _mesa_initialize_context(struct gl_context *ctx,
ctx->Exec = _mesa_create_exec_table_es1();
break;
#endif
-#if FEATURE_ES2
- case API_OPENGLES2:
- ctx->Exec = _mesa_create_exec_table_es2();
- break;
-#endif
default:
_mesa_problem(ctx, "unknown or unsupported API");
break;