mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
gl_device: Fix IsASTCSupported
Other targets were never actually checked
This commit is contained in:
parent
0e1268e507
commit
a927d8be52
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue