diff options
author | Jordan Justen <[email protected]> | 2012-07-19 11:27:16 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-07-30 16:18:57 -0700 |
commit | 09714c09a40501d82823e42f7461d7b8d7bf11c0 (patch) | |
tree | 144610e22885309e431706173799f044d86255c7 /src/mesa/main/context.c | |
parent | 3d284dcba6f692ce268c9a2178a30e7a308b2cfc (diff) |
mesa: add support for using API_OPENGL_CORE
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 243053eeb29..b1f16ec065b 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 (ctx->API == API_OPENGL) + if (_mesa_is_desktop_gl(ctx)) _mesa_init_remap_table(); } @@ -626,7 +626,7 @@ _mesa_init_constants(struct gl_context *ctx) #endif /* Shading language version */ - if (ctx->API == API_OPENGL) { + if (_mesa_is_desktop_gl(ctx)) { ctx->Const.GLSLVersion = 120; _mesa_override_glsl_version(ctx); } @@ -962,6 +962,7 @@ _mesa_initialize_context(struct gl_context *ctx, switch (ctx->API) { #if FEATURE_GL case API_OPENGL: + case API_OPENGL_CORE: ctx->Exec = _mesa_create_exec_table(); break; #endif @@ -1007,6 +1008,7 @@ _mesa_initialize_context(struct gl_context *ctx, switch (ctx->API) { case API_OPENGL: + case API_OPENGL_CORE: #if FEATURE_dlist ctx->Save = _mesa_create_save_table(); if (!ctx->Save) { |