gl: Fix image creation for virtual formats

This commit is contained in:
kd-11
2022-06-25 15:55:58 +03:00
committed by kd-11
parent 599f1dd157
commit ebad08aa97
+1 -1
View File
@@ -64,7 +64,7 @@ namespace gl
m_mipmaps = mipmaps; m_mipmaps = mipmaps;
m_aspect_flags = image_aspect::color; m_aspect_flags = image_aspect::color;
switch (sized_format) switch (storage_fmt)
{ {
case GL_DEPTH_COMPONENT16: case GL_DEPTH_COMPONENT16:
{ {