mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Don't call glBindImageTexture if it is not supported.
This commit is contained in:
parent
aa694d4314
commit
e21f455686
|
@ -291,7 +291,8 @@ void FrameBufferList::attachDepthBuffer()
|
||||||
#ifndef GLES2
|
#ifndef GLES2
|
||||||
GLuint attachments[1] = { GL_COLOR_ATTACHMENT0 };
|
GLuint attachments[1] = { GL_COLOR_ATTACHMENT0 };
|
||||||
glDrawBuffers(1, attachments);
|
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
|
#endif
|
||||||
assert(checkFBO());
|
assert(checkFBO());
|
||||||
} else if (m_pCurrent != NULL) {
|
} else if (m_pCurrent != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user