diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-06-25 15:58:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 15:58:09 -0300 |
commit | ae1f709658b76e5f710318d961c06d18b7254157 (patch) | |
tree | 1b07417789cc063e273c64b362a8877e096222e3 /src | |
parent | d11baf8bf8655047737295544c161ecef7600fe0 (diff) | |
parent | a927d8be52c343bc1025e5df822c56470eb27919 (diff) |
Merge pull request #4160 from ogniK5377/IsASTCSupported-fix
gl_device: Fix IsASTCSupported to scan all targets instead of just GL_TEXTURE_2D
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index 447a19595..b6b6659c1 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -178,7 +178,7 @@ bool IsASTCSupported() { for (const GLenum format : formats) { for (const GLenum support : required_support) { GLint value; - glGetInternalformativ(GL_TEXTURE_2D, format, support, 1, &value); + glGetInternalformativ(target, format, support, 1, &value); if (value != GL_FULL_SUPPORT) { return false; } |