Loosened epsilon for color matching

Fixed https://github.com/libsdl-org/SDL/issues/14473
This commit is contained in:
Sam Lantinga
2025-11-15 16:50:45 -08:00
parent 3f0545587f
commit 770b38b4f1

View File

@@ -2106,7 +2106,7 @@ static void CheckUniformColor(float expected)
{
SDL_Surface *surface = SDL_RenderReadPixels(renderer, NULL);
if (surface) {
const float epsilon = 0.0001f;
const float epsilon = 0.001f;
float r, g, b, a;
CHECK_FUNC(SDL_ReadSurfacePixelFloat, (surface, 0, 0, &r, &g, &b, &a));
SDLTest_AssertCheck(