mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-29 04:21:03 +08:00
Loosened epsilon for color matching
Fixed https://github.com/libsdl-org/SDL/issues/14473
This commit is contained in:
@@ -2106,7 +2106,7 @@ static void CheckUniformColor(float expected)
|
|||||||
{
|
{
|
||||||
SDL_Surface *surface = SDL_RenderReadPixels(renderer, NULL);
|
SDL_Surface *surface = SDL_RenderReadPixels(renderer, NULL);
|
||||||
if (surface) {
|
if (surface) {
|
||||||
const float epsilon = 0.0001f;
|
const float epsilon = 0.001f;
|
||||||
float r, g, b, a;
|
float r, g, b, a;
|
||||||
CHECK_FUNC(SDL_ReadSurfacePixelFloat, (surface, 0, 0, &r, &g, &b, &a));
|
CHECK_FUNC(SDL_ReadSurfacePixelFloat, (surface, 0, 0, &r, &g, &b, &a));
|
||||||
SDLTest_AssertCheck(
|
SDLTest_AssertCheck(
|
||||||
|
|||||||
Reference in New Issue
Block a user