Browse Source

fix test.graphics.Canvas

ell 1 year ago
parent
commit
0ef417f60c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      testing/tests/graphics.lua

+ 2 - 1
testing/tests/graphics.lua

@@ -91,7 +91,8 @@ love.test.graphics.Canvas = function(test)
   -- check depth samples
   local dcanvas = love.graphics.newCanvas(100, 100, {
     type = '2d',
-    format = 'depth16'
+    format = 'depth16',
+    readable = true
   })
   test:assertEquals(nil, dcanvas:getDepthSampleMode(), 'check depth sample mode nil by def')
   dcanvas:setDepthSampleMode('equal')