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:
parent
51b8547eba
commit
e0d8830b2a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user