summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-02 09:27:51 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-02 09:27:51 -0400
commita804af2a1ea184ecc2c6a5e77335fae1e7730242 (patch)
tree9fec0266b17966e4b06ff2e4ff2c00f58967625f
parent9339c1291d73ada1a85b994cb076a9a0bf3c8110 (diff)
st/mesa: Create context for API_OPENGL as first priority
-rw-r--r--src/mesa/state_tracker/st_context.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 48fc86cd52..2b1174a504 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -199,15 +199,15 @@ struct st_context *st_create_context(struct pipe_context *pipe,
memset(&funcs, 0, sizeof(funcs));
st_init_driver_functions(&funcs);
-#if FEATURE_ES1
+#if FEATURE_GL
+ ctx = _mesa_create_context_for_api(API_OPENGL,
+ visual, shareCtx, &funcs, NULL);
+#elif FEATURE_ES1
ctx = _mesa_create_context_for_api(API_OPENGLES,
visual, shareCtx, &funcs, NULL);
#elif FEATURE_ES2
ctx = _mesa_create_context_for_api(API_OPENGLES2,
visual, shareCtx, &funcs, NULL);
-#else
- ctx = _mesa_create_context_for_api(API_OPENGL,
- visual, shareCtx, &funcs, NULL);
#endif
/* XXX: need a capability bit in gallium to query if the pipe