Temporarily revert "mesa: remove remaining FEATURE_* defines where protected by API check."

This reverts commit 9f37b405a3.

Fixes windows builds.
This commit is contained in:
José Fonseca
2012-09-15 18:15:22 +01:00
parent e78ebbc5f9
commit b6c2234c22
9 changed files with 29 additions and 2 deletions

View File

@@ -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;