mirror of
https://github.com/love2d/love.git
synced 2026-08-12 00:20:52 +02:00
tests: fix a missing love.graphics.pop
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user