Browse Source

tests: fix a missing love.graphics.pop

Sasha Szpakowski 1 year ago
parent
commit
e11ab50965
1 changed files with 1 additions and 0 deletions
  1. 1 0
      testing/tests/graphics.lua

+ 1 - 0
testing/tests/graphics.lua

@@ -2489,6 +2489,7 @@ love.test.graphics.push = function(test)
     love.graphics.setColor(1, 0, 0, 1)
     love.graphics.rectangle('fill', 0, 0, 1, 1)
     love.graphics.setColor(1, 1, 1, 1)
+    love.graphics.pop()
   love.graphics.setCanvas()
   local imgdata = love.graphics.readbackTexture(canvas)
   test:compareImg(imgdata)