Page 1 of 1

love.graphics.setDepthMode("lequal", true) does not work on Windows

Posted: Sun Nov 05, 2023 6:35 pm
by Kreoz
Good evening, I am creating a small 3D game engine with just lua love2d, I have 2 cubes which rotate on themselves and one behind the other.
The furthest cube is displayed in front of the closest one which is a problem.

so I use love.graphics.setDepthMode("lequal", true) and everything works perfectly on Mac but when I try on Windows it doesn't work.

I specify that I have the same code on both platforms.
Can someone help me please.

Re: love.graphics.setDepthMode("lequal", true) does not work on Windows

Posted: Sun Nov 05, 2023 6:45 pm
by slime
If you're rendering to the main screen, are you making sure to set t.window.depth = 24 in love.conf? Or if you're rendering to a canvas, are you making sure to tell love to use a depth buffer in love.graphics.setCanvas?