mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 22:18:13 +02:00
st/mesa: Create context for API_OPENGL as first priority
This commit is contained in:
parent
e53e7c9346
commit
dbf423975c
1 changed files with 4 additions and 4 deletions
|
|
@ -173,15 +173,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue