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

Check for GL_ARB_shader_image_load_store

Image Textures might be available on devices with OpenGL < 4.3 if they support GL_ARB_shader_image_load_store
This commit is contained in:
Logan McNaughton 2016-11-19 19:18:05 -07:00 committed by Sergey Lipskiy
parent 3b9f3a4263
commit c5c7845294

View File

@ -2089,7 +2089,7 @@ void OGLRender::_initExtensions()
#ifdef GL_IMAGE_TEXTURES_SUPPORT
#ifndef GLESX
m_bImageTexture = (majorVersion >= 4) && (minorVersion >= 3) && (glBindImageTexture != nullptr);
m_bImageTexture = (((majorVersion >= 4) && (minorVersion >= 3)) || OGLVideo::isExtensionSupported("GL_ARB_shader_image_load_store")) && (glBindImageTexture != nullptr);
#elif defined(GLES3_1)
m_bImageTexture = (majorVersion >= 3) && (minorVersion >= 1) && (glBindImageTexture != nullptr);
#else