Procházet zdrojové kódy

Merge pull request #4160 from ogniK5377/IsASTCSupported-fix

gl_device: Fix IsASTCSupported to scan all targets instead of just GL_TEXTURE_2D
Rodrigo Locatti před 6 roky
rodič
revize
ae1f709658
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 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;
                 }