projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf346f0
)
st/dri: Make clear which API's are supported
author
nobled
<nobled@dreamwidth.org>
Tue, 7 Sep 2010 16:10:45 +0000
(12:10 -0400)
committer
Chia-I Wu
<olv@lunarg.com>
Wed, 8 Sep 2010 04:55:26 +0000
(12:55 +0800)
If the caller requests a GLES context, don't silently create
a desktop GL context in its place.
src/gallium/state_trackers/dri/common/dri_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/common/dri_context.c
b/src/gallium/state_trackers/dri/common/dri_context.c
index 203682ef330469ba2040daf64d503f5881625f82..931cffafcea438030fc8c186d08a2025690e18a4 100644
(file)
--- a/
src/gallium/state_trackers/dri/common/dri_context.c
+++ b/
src/gallium/state_trackers/dri/common/dri_context.c
@@
-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