summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index 203682ef330..931cffafcea 100644
--- 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