mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
st/dri: Make clear which API's are supported
If the caller requests a GLES context, don't silently create a desktop GL context in its place.
This commit is contained in:
parent
bf346f065c
commit
ecd7ec9d62
1 changed files with 4 additions and 1 deletions
|
|
@ -59,6 +59,9 @@ dri_create_context(gl_api api, const __GLcontextModes * visual,
|
|||
struct st_context_iface *st_share = NULL;
|
||||
struct st_visual stvis;
|
||||
|
||||
if (api != API_OPENGL)
|
||||
return GL_FALSE;
|
||||
|
||||
if (sharedContextPrivate) {
|
||||
st_share = ((struct dri_context *)sharedContextPrivate)->st;
|
||||
}
|
||||
|
|
@ -90,7 +93,7 @@ dri_create_context(gl_api api, const __GLcontextModes * visual,
|
|||
ctx->st->destroy(ctx->st);
|
||||
|
||||
FREE(ctx);
|
||||
return FALSE;
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue