Browse Source

tests: fix love.graphics.setDepthMode test

Sasha Szpakowski 1 year ago
parent
commit
fffb835358
2 changed files with 3 additions and 1 deletions
  1. 2 0
      testing/conf.lua
  2. 1 1
      testing/main.lua

+ 2 - 0
testing/conf.lua

@@ -4,5 +4,7 @@ function love.conf(t)
   t.window.width = 360
   t.window.width = 360
   t.window.height = 240
   t.window.height = 240
   t.window.resizable = true
   t.window.resizable = true
+  t.window.depth = true
+  t.window.stencil = true
   t.renderers = {"opengl"}
   t.renderers = {"opengl"}
 end
 end

+ 1 - 1
testing/main.lua

@@ -36,7 +36,7 @@ love.load = function(args)
 
 
   -- setup basic img to display
   -- setup basic img to display
   if love.window ~= nil then
   if love.window ~= nil then
-    love.window.setMode(360, 240, {
+    love.window.updateMode(360, 240, {
       fullscreen = false,
       fullscreen = false,
       resizable = true,
       resizable = true,
       centered = true
       centered = true