st/mesa: Fix inverted polygon stipple condition
Fixes Piglit's gl-2.1-polygon-stipple-fs on iris.
Fixes: 63f24c3c01
("gallium: Enable MESA_framebuffer_flip_y")
Reviewed-by: Fritz Koenig <frkoenig@google.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
parent
63f24c3c01
commit
b453b29fc7
|
@ -74,7 +74,7 @@ st_update_polygon_stipple( struct st_context *st )
|
|||
|
||||
memcpy(st->state.poly_stipple, ctx->PolygonStipple, sz);
|
||||
|
||||
if (ctx->DrawBuffer->FlipY) {
|
||||
if (!ctx->DrawBuffer->FlipY) {
|
||||
memcpy(newStipple.stipple, ctx->PolygonStipple, sizeof(newStipple.stipple));
|
||||
} else {
|
||||
invert_stipple(newStipple.stipple, ctx->PolygonStipple,
|
||||
|
|
Loading…
Reference in New Issue