mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
mesa/program: Take ARB_framebuffers_no_attachments into account in wpos correction
If a drawbuffer is an fbo without an attachment then its 'Height' will be zero, and we have to take its 'DefaultGeometry.Height' into account. Fixes on softpipe (with the exception of tests that use multisample): dEQP-GLES31.functional.fbo.no_attachments.* Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
fe0e9db797
commit
6a09405368
1 changed files with 2 additions and 2 deletions
|
|
@ -576,11 +576,11 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
|||
value[0] = 1.0F;
|
||||
value[1] = 0.0F;
|
||||
value[2] = -1.0F;
|
||||
value[3] = (GLfloat) ctx->DrawBuffer->Height;
|
||||
value[3] = _mesa_geometric_height(ctx->DrawBuffer);
|
||||
} else {
|
||||
/* Flipping Y upside down (XY) followed by identity (ZW). */
|
||||
value[0] = -1.0F;
|
||||
value[1] = (GLfloat) ctx->DrawBuffer->Height;
|
||||
value[1] = _mesa_geometric_height(ctx->DrawBuffer);
|
||||
value[2] = 1.0F;
|
||||
value[3] = 0.0F;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue