mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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 <marek.olsak@amd.com>
This commit is contained in:
parent
3fbd1b0cb5
commit
db8b6fb2df
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue