[Piglit] [PATCH] glsl-fs-discard-mrt: Fix binding the winsys framebuffer in -fbo mode.

Brian Paul brianp at vmware.com
Sat Nov 18 03:45:44 UTC 2017


On 11/17/2017 05:26 PM, Eric Anholt wrote:
> Fixes failure on vc5 where the alpha was forced to 1 due to an rgbx
> window system buffer.
> ---
>   tests/shaders/glsl-fs-discard-mrt.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/shaders/glsl-fs-discard-mrt.c b/tests/shaders/glsl-fs-discard-mrt.c
> index 8447cf270b96..68955fa06488 100644
> --- a/tests/shaders/glsl-fs-discard-mrt.c
> +++ b/tests/shaders/glsl-fs-discard-mrt.c
> @@ -141,7 +141,7 @@ draw_fbo_to_screen_and_test(void)
>   	float magenta[4] = {1, 0, 1, 0};
>
>   	glUseProgram(0);
> -	glBindFramebuffer(GL_FRAMEBUFFER, 0);
> +	glBindFramebuffer(GL_FRAMEBUFFER, piglit_winsys_fbo);
>
>   	glClearColor(0.5, 0.5, 0.5, 0.5);
>   	glClear(GL_COLOR_BUFFER_BIT);
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list