<imirkin> zmike: re
6a8c51dc5a4 -- couldn't minx be > maxx after the clamping? in nouveau i did >= for the bail condition
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9350>
const struct gl_framebuffer *fb = ctx->DrawBuffer;
scissor_state.maxx = MIN2(scissor_state.maxx, fb->Width);
scissor_state.maxy = MIN2(scissor_state.maxy, fb->Height);
- if (scissor_state.minx == scissor_state.maxx ||
- scissor_state.miny == scissor_state.maxy)
+ if (scissor_state.minx >= scissor_state.maxx ||
+ scissor_state.miny >= scissor_state.maxy)
return;
}
/* We can't translate the clear color to the colorbuffer format,