mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Hack depth buffer attachment for GLES2. Need proper fix.
This commit is contained in:
parent
1653069329
commit
a25c85b3f2
|
@ -547,7 +547,11 @@ void FrameBufferList::attachDepthBuffer()
|
|||
if (m_pCurrent->m_FBO > 0 && pDepthBuffer != NULL) {
|
||||
pDepthBuffer->initDepthImageTexture(m_pCurrent);
|
||||
pDepthBuffer->initDepthBufferTexture(m_pCurrent);
|
||||
#ifdef GLES2
|
||||
if (pDepthBuffer->m_pDepthBufferTexture->realWidth == m_pCurrent->m_pTexture->realWidth) {
|
||||
#else
|
||||
if (pDepthBuffer->m_pDepthBufferTexture->realWidth >= m_pCurrent->m_pTexture->realWidth) {
|
||||
#endif
|
||||
m_pCurrent->m_pDepthBuffer = pDepthBuffer;
|
||||
pDepthBuffer->setDepthAttachment(GL_DRAW_FRAMEBUFFER);
|
||||
if (video().getRender().isImageTexturesSupported() && config.frameBufferEmulation.N64DepthCompare != 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user