mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fixes some depth issues in Android
This commit is contained in:
parent
149c0c517e
commit
f55a4aee8f
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user