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:
Kenneth Graunke 2019-10-08 15:20:19 -07:00
parent 63f24c3c01
commit b453b29fc7
1 changed files with 1 additions and 1 deletions

View File

@ -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,