summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Rodrigo Locatti2020-06-25 15:58:09 -0300
committerGravatar GitHub2020-06-25 15:58:09 -0300
commitae1f709658b76e5f710318d961c06d18b7254157 (patch)
tree1b07417789cc063e273c64b362a8877e096222e3 /src
parentMerge pull request #4141 from Morph1984/SevenSixAxisSensor (diff)
parentgl_device: Fix IsASTCSupported (diff)
downloadyuzu-ae1f709658b76e5f710318d961c06d18b7254157.tar.gz
yuzu-ae1f709658b76e5f710318d961c06d18b7254157.tar.xz
yuzu-ae1f709658b76e5f710318d961c06d18b7254157.zip
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.cpp2
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 }