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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Kreoz
Prole
Posts: 1
Joined: Sun Nov 05, 2023 6:20 pm

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

Post 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.
User avatar
slime
Solid Snayke
Posts: 3133
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 61 guests