summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2014-01-30 16:47:28 +0900
committerMichel Dänzer <[email protected]>2014-01-31 11:06:26 +0900
commitdb8b6fb2dfcbbb7ae53371f2835aa08553b6f37d (patch)
tree2791b7449f056e3a7c027be1a60a5e96a7539c3d /src/gallium/state_trackers/dri
parent3fbd1b0cb576b46ac8df2697cb388db78f48012d (diff)
st/dri: Fix tests for no draw/read buffers in dri_make_current()
Fixes piglit glx/GLX_ARB_create_context/current with no framebuffer. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index 988e28ea244..f6979a7c2d0 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -236,9 +236,9 @@ dri_make_current(__DRIcontext * cPriv,
++ctx->bind_count;
- if (!driDrawPriv && !driReadPriv)
+ if (!draw && !read)
return ctx->stapi->make_current(ctx->stapi, ctx->st, NULL, NULL);
- else if (!driDrawPriv || !driReadPriv)
+ else if (!draw || !read)
return GL_FALSE;
if (ctx->dPriv != driDrawPriv) {