diff options
author | Fritz Koenig <[email protected]> | 2018-09-10 12:11:16 -0700 |
---|---|---|
committer | Kristian H. Kristensen <[email protected]> | 2018-09-17 11:48:00 -0700 |
commit | ba6cc32cf9337804d744f234a196c97923c84360 (patch) | |
tree | 3fce5b81d4151059b9ab6f1af67dc9f398539870 /src/mesa/main | |
parent | d17443a459383fdd7018fa879134f05b5daff1e1 (diff) |
mesa: Additional FlipY applications
Instances where direction was determined based on
winsys or user fbo and should be determined based on
FlipY.
Key STATE_FB_WPOS_Y_TRANSFORM for of FlipY instead of
_mesa_is_user_fbo. This corrects gl_FragCoord usage
when applying GL_MESA_framebuffer_flip_y.
Fixes: ab05dd183cc ("i965: implement GL_MESA_framebuffer_flip_y [v3]")
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/multisample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index 8beb1d839ec..d494a43ac7d 100644 --- a/src/mesa/main/multisample.c +++ b/src/mesa/main/multisample.c @@ -94,8 +94,8 @@ _mesa_GetMultisamplefv(GLenum pname, GLuint index, GLfloat * val) ctx->Driver.GetSamplePosition(ctx, ctx->DrawBuffer, index, val); - /* winsys FBOs are upside down */ - if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) + /* FBOs can be upside down (winsys always are)*/ + if (ctx->DrawBuffer->FlipY) val[1] = 1.0f - val[1]; return; |