From edb12234d993faf1b96f9d0c666b2d9b164d2937 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 2 May 2020 16:47:31 +1000 Subject: [PATCH] Common/GL/Texture: Fix potential crash on older drivers --- src/common/gl/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gl/texture.cpp b/src/common/gl/texture.cpp index 8fb60333d..20ce1fd6d 100644 --- a/src/common/gl/texture.cpp +++ b/src/common/gl/texture.cpp @@ -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);