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

Don't call glBindImageTexture if it is not supported.

This commit is contained in:
Sergey Lipskiy 2014-10-02 20:45:15 +07:00
parent aa694d4314
commit e21f455686

View File

@ -291,7 +291,8 @@ void FrameBufferList::attachDepthBuffer()
#ifndef GLES2
GLuint attachments[1] = { GL_COLOR_ATTACHMENT0 };
glDrawBuffers(1, attachments);
glBindImageTexture(depthImageUnit, pDepthBuffer->m_pDepthTexture->glName, 0, GL_FALSE, 0, GL_READ_WRITE, GL_RGBA32F);
if (video().getRender().isImageTexturesSupported())
glBindImageTexture(depthImageUnit, pDepthBuffer->m_pDepthTexture->glName, 0, GL_FALSE, 0, GL_READ_WRITE, GL_RGBA32F);
#endif
assert(checkFBO());
} else if (m_pCurrent != NULL) {