Permalink
Browse files

OpenGL Renderer: Add true support for the depth-equals test by proper…

…ly emulating the tolerance value. This fixes many longstanding bugs related to missing polygons, Z-fighting glitches, and other misc. graphical glitches in many games.
  • Loading branch information...
rogerman committed Oct 10, 2017
1 parent 2a1aaf7 commit 47a71941ace946dcbe5524359be596e4701748b8
Showing with 271 additions and 60 deletions.
  1. +258 −54 desmume/src/OGLRender.cpp
  2. +5 −3 desmume/src/OGLRender.h
  3. +8 −3 desmume/src/OGLRender_3_2.cpp
Oops, something went wrong.

1 comment on commit 47a7194

@StapleButter

This comment has been minimized.

Show comment
Hide comment
@StapleButter

StapleButter Nov 10, 2017

According to my hardware tests, the equal-depth tolerance is actually +-255. Probably doesn't matter much though.

StapleButter commented on 47a7194 Nov 10, 2017

According to my hardware tests, the equal-depth tolerance is actually +-255. Probably doesn't matter much though.

Please sign in to comment.