Skip to content

Commit

Permalink
add tests for no depth or stencil in the window.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Sep 28, 2024
1 parent a16db4f commit 61e58bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions testing/tests/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 61e58bb

Please sign in to comment.