Browse Source

Loosened epsilon for color matching

Fixed https://github.com/libsdl-org/SDL/issues/14473
Sam Lantinga 3 weeks ago
parent
commit
770b38b4f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testautomation_render.c

+ 1 - 1
test/testautomation_render.c

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