1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fixes some depth issues in Android

This commit is contained in:
Francisco Zurita 2016-07-23 01:18:27 -04:00
parent 149c0c517e
commit f55a4aee8f
2 changed files with 7 additions and 4 deletions

View File

@ -398,10 +398,7 @@ void DepthBufferList::saveBuffer(u32 _address)
m_pCurrent = &buffer;
}
#ifdef ANDROID
//Fixes issues with PowerVR devices and potentially other Android devices
glClear( GL_DEPTH_BUFFER_BIT );
#endif
frameBufferList().attachDepthBuffer();
#ifdef DEBUG

View File

@ -1836,6 +1836,12 @@ void OGLRender::clearDepthBuffer(u32 _uly, u32 _lry)
depthBufferList().clearBuffer(_uly, _lry);
glDisable( GL_SCISSOR_TEST );
#ifdef ANDROID
glDepthMask( FALSE );
glClear( GL_DEPTH_BUFFER_BIT );
#endif
glDepthMask( TRUE );
glClear( GL_DEPTH_BUFFER_BIT );