Browse Source

add tests for no depth or stencil in the window.

Sasha Szpakowski 10 months ago
parent
commit
61e58bb361
1 changed files with 10 additions and 0 deletions
  1. 10 0
      testing/tests/window.lua

+ 10 - 0
testing/tests/window.lua

@@ -358,4 +358,14 @@ love.test.window.updateMode = function(test)
     fullscreen = false,
     resizable = true
   })
+
+  -- test different combinations of the backbuffer depth/stencil buffer.
+  test:waitFrames(1)
+  love.window.updateMode(360, 240, {depth = false, stencil = false})
+  test:waitFrames(1)
+  love.window.updateMode(360, 240, {depth = true, stencil = true})
+  test:waitFrames(1)
+  love.window.updateMode(360, 240, {depth = true, stencil = false})
+  test:waitFrames(1)
+  love.window.updateMode(360, 240, {depth = false, stencil = true})
 end