Commit db8b6fb2 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer

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: default avatarMarek Olšák <>
parent 3fbd1b0c
......@@ -236,9 +236,9 @@ dri_make_current(__DRIcontext * cPriv,
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) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment