gl_device: Fix IsASTCSupported

Other targets were never actually checked
master
David Marcec 2020-06-25 19:12:56 +07:00
parent 0e1268e507
commit a927d8be52
1 changed files with 1 additions and 1 deletions

@ -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;
}