mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
Set cleardepth the traditional way on desktop.
This commit is contained in:
1 parent
0fa3e0b6f2
commit
a9832fb79a
1 file changed
+5
-1
@@ -157,7 +157,11 @@ static void ClearBuffer() {
|
||||
glstate.stencilFunc.set(GL_ALWAYS, 0xFF, 0xFF);
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClearStencil(0xFF);
|
||||
glClearDepthf(1.0);
|
||||
#ifdef USING_GLES2
|
||||
glClearDepthf(1.0f);
|
||||
#else
|
||||
glClearDepth(1.0);
|
||||
#endif
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user