mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Clear depth buffers to zero, not 1.0f.
Memory is generally initially zeros.
This commit is contained in:
parent
a9da3618ba
commit
b5eb072e64
1 changed files with 4 additions and 4 deletions
|
@ -179,9 +179,9 @@ void FramebufferManager::ClearBuffer() {
|
|||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClearStencil(0xFF);
|
||||
#ifdef USING_GLES2
|
||||
glClearDepthf(1.0f);
|
||||
glClearDepthf(0.0f);
|
||||
#else
|
||||
glClearDepth(1.0);
|
||||
glClearDepth(0.0);
|
||||
#endif
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||
}
|
||||
|
@ -190,9 +190,9 @@ void FramebufferManager::ClearDepthBuffer() {
|
|||
glstate.scissorTest.disable();
|
||||
glstate.depthWrite.set(GL_TRUE);
|
||||
#ifdef USING_GLES2
|
||||
glClearDepthf(1.0f);
|
||||
glClearDepthf(0.0f);
|
||||
#else
|
||||
glClearDepth(1.0);
|
||||
glClearDepth(0.0);
|
||||
#endif
|
||||
glClear(GL_DEPTH_BUFFER_BIT);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue