diff options
author | José Fonseca <[email protected]> | 2012-09-15 18:15:22 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-09-15 18:18:39 +0100 |
commit | b6c2234c22d5a935012870fa254e68d026ef265e (patch) | |
tree | 46441ab3b3110cd9f9c600b821efee6be8feecc9 /src/mesa/main/context.c | |
parent | e78ebbc5f9448d459b57884d90b0a6496294c1dd (diff) |
Temporarily revert "mesa: remove remaining FEATURE_* defines where protected by API check."
This reverts commit 9f37b405a3de8668a5f74c9681829688475ac3b7.
Fixes windows builds.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 63bb3da89d3..abce52e5848 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -952,14 +952,18 @@ _mesa_initialize_context(struct gl_context *ctx, /* setup the API dispatch tables */ switch (ctx->API) { +#if FEATURE_GL || FEATURE_ES2 case API_OPENGL: case API_OPENGL_CORE: case API_OPENGLES2: ctx->Exec = _mesa_create_exec_table(ctx); break; +#endif +#if FEATURE_ES1 case API_OPENGLES: ctx->Exec = _mesa_create_exec_table_es1(); break; +#endif default: _mesa_problem(ctx, "unknown or unsupported API"); break; |