diff options
| author | 2020-06-25 19:12:56 +1000 | |
|---|---|---|
| committer | 2020-06-25 19:12:56 +1000 | |
| commit | a927d8be52c343bc1025e5df822c56470eb27919 (patch) | |
| tree | 75130254f6cc409c7467530749c0e3a0486778b8 | |
| parent | Merge pull request #4105 from ReinUsesLisp/resident-buffers (diff) | |
| download | yuzu-a927d8be52c343bc1025e5df822c56470eb27919.tar.gz yuzu-a927d8be52c343bc1025e5df822c56470eb27919.tar.xz yuzu-a927d8be52c343bc1025e5df822c56470eb27919.zip | |
gl_device: Fix IsASTCSupported
Other targets were never actually checked
| -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() { | |||
| 178 | for (const GLenum format : formats) { | 178 | for (const GLenum format : formats) { |
| 179 | for (const GLenum support : required_support) { | 179 | for (const GLenum support : required_support) { |
| 180 | GLint value; | 180 | GLint value; |
| 181 | glGetInternalformativ(GL_TEXTURE_2D, format, support, 1, &value); | 181 | glGetInternalformativ(target, format, support, 1, &value); |
| 182 | if (value != GL_FULL_SUPPORT) { | 182 | if (value != GL_FULL_SUPPORT) { |
| 183 | return false; | 183 | return false; |
| 184 | } | 184 | } |