mesa/st: even better no-oping for clears
<imirkin> zmike: re 6a8c51dc5a
-- 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>
This commit is contained in:

committed by
Marge Bot

parent
6782f50902
commit
3054921a8d
@@ -542,8 +542,8 @@ st_Clear(struct gl_context *ctx, GLbitfield mask)
|
||||
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,
|
||||
|
Reference in New Issue
Block a user