1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Another fix for FBE on Raspberry Pi

This commit is contained in:
Logan McNaughton 2016-07-18 12:58:40 -06:00 committed by Sergey Lipskiy
parent 51b8547eba
commit e0d8830b2a

View File

@ -712,6 +712,10 @@ void FrameBufferList::attachDepthBuffer()
if (m_pCurrent == nullptr)
return;
#ifdef VC
const GLenum discards[] = {GL_DEPTH_ATTACHMENT};
glDiscardFramebufferEXT(GL_FRAMEBUFFER, 1, discards);
#endif
DepthBuffer * pDepthBuffer = depthBufferList().getCurrent();
if (m_pCurrent->m_FBO > 0 && pDepthBuffer != nullptr) {
pDepthBuffer->initDepthImageTexture(m_pCurrent);