[Mesa-dev] [PATCH] st/dri: Fix tests for no draw/read buffers in dri_make_current()
Marek Olšák
maraeo at gmail.com
Fri Jan 31 01:41:46 PST 2014
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Fri, Jan 31, 2014 at 4:15 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Fixes piglit glx/GLX_ARB_create_context/current with no framebuffer.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> src/gallium/state_trackers/dri/common/dri_context.c | 4 ++--
> 1 file 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 988e28e..f6979a7 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) {
> --
> 1.8.5.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list