From 6bd08f1d9328aacfc1a377554b92cc9d1ee32e90 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Thu, 21 Mar 2024 22:46:42 -0300 Subject: [PATCH] attempt to fix graphics tests on CI --- .../expected/love.test.graphics.Canvas-3.png | Bin 327 -> 100 bytes testing/tests/graphics.lua | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/output/expected/love.test.graphics.Canvas-3.png b/testing/output/expected/love.test.graphics.Canvas-3.png index d3e9c37f8bc3899bba97bfaff675fbbb0688b8f6..15a5cf8e3090dee53ddff164317a39a8147f1014 100644 GIT binary patch delta 82 zcmX@klrllWhmo0qfx%0MT^vZU1^9%xGW-WZhKsYk)&WH%JzX3_D&{07NU$zW=xF-y i@!+sV{uJ|)3Wl25Ez8TJHC_M}F?hQAxvXb-_`K-hvc z2O=7cd8UX$I1Z7Go0w8rPjO8VmC!C|gL7~zJ;pUBalslSeN<6Of&&mro0vOln7by4 SrzHRbh{4m<&t;ucLK6USId^;j diff --git a/testing/tests/graphics.lua b/testing/tests/graphics.lua index 2ad615835..6e61ad830 100644 --- a/testing/tests/graphics.lua +++ b/testing/tests/graphics.lua @@ -204,7 +204,7 @@ love.test.graphics.Canvas = function(test) -- check y-down local shader1 = love.graphics.newShader[[ vec4 effect(vec4 c, Image tex, vec2 tc, vec2 pc) { - return vec4(tc, 0.0, 1.0); + return tc.y > 0.5 ? vec4(1.0, 0.0, 0.0, 1.0) : vec4(0.0, 1.0, 0.0, 1.0); } ]] local shader2 = love.graphics.newShader[[