mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-20 06:00:58 +00:00
Set cleardepth the traditional way on desktop.
This commit is contained in:
parent
0fa3e0b6f2
commit
a9832fb79a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user