Common/GL/Texture: Fix potential crash on older drivers

This commit is contained in:
Connor McLaughlin 2020-05-02 16:47:31 +10:00
parent 620210cfc9
commit edb12234d9
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ void Texture::GetTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLi
GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type,
GLsizei bufSize, void* pixels)
{
if (GL_VERSION_4_5 || GLAD_GL_ARB_get_texture_sub_image)
if (GLAD_GL_VERSION_4_5 || GLAD_GL_ARB_get_texture_sub_image)
{
glGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize,
pixels);