Parcourir la source

gl_device: Fix IsASTCSupported

Other targets were never actually checked
David Marcec il y a 6 ans
Parent
commit
a927d8be52
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/video_core/renderer_opengl/gl_device.cpp

+ 1 - 1
src/video_core/renderer_opengl/gl_device.cpp

@@ -178,7 +178,7 @@ bool IsASTCSupported() {
         for (const GLenum format : formats) {
         for (const GLenum format : formats) {
             for (const GLenum support : required_support) {
             for (const GLenum support : required_support) {
                 GLint value;
                 GLint value;
-                glGetInternalformativ(GL_TEXTURE_2D, format, support, 1, &value);
+                glGetInternalformativ(target, format, support, 1, &value);
                 if (value != GL_FULL_SUPPORT) {
                 if (value != GL_FULL_SUPPORT) {
                     return false;
                     return false;
                 }
                 }