From 61e58bb361cda85854919675853bf533799e9616 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 28 Sep 2024 18:23:40 -0300 Subject: [PATCH] add tests for no depth or stencil in the window. --- testing/tests/window.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/testing/tests/window.lua b/testing/tests/window.lua index 98cfc2f43..be252f656 100644 --- a/testing/tests/window.lua +++ b/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