mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +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)
|
if (m_pCurrent == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef VC
|
||||||
|
const GLenum discards[] = {GL_DEPTH_ATTACHMENT};
|
||||||
|
glDiscardFramebufferEXT(GL_FRAMEBUFFER, 1, discards);
|
||||||
|
#endif
|
||||||
DepthBuffer * pDepthBuffer = depthBufferList().getCurrent();
|
DepthBuffer * pDepthBuffer = depthBufferList().getCurrent();
|
||||||
if (m_pCurrent->m_FBO > 0 && pDepthBuffer != nullptr) {
|
if (m_pCurrent->m_FBO > 0 && pDepthBuffer != nullptr) {
|
||||||
pDepthBuffer->initDepthImageTexture(m_pCurrent);
|
pDepthBuffer->initDepthImageTexture(m_pCurrent);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user