Fix ifdef for glTexStorage;

It's always present on GLES.
This commit is contained in:
bjorn 2020-01-14 19:39:10 -08:00
parent da88766e5a
commit c0d1e28deb
1 changed files with 2 additions and 2 deletions

View File

@ -1480,7 +1480,7 @@ void lovrTextureAllocate(Texture* texture, uint32_t width, uint32_t height, uint
GLenum glFormat = convertTextureFormat(format);
GLenum internalFormat = convertTextureFormatInternal(format, texture->srgb);
#ifndef LOVR_WEBGL
#ifdef LOVR_GL
if (GLAD_GL_ARB_texture_storage) {
#endif
if (texture->type == TEXTURE_ARRAY) {
@ -1488,7 +1488,7 @@ void lovrTextureAllocate(Texture* texture, uint32_t width, uint32_t height, uint
} else {
glTexStorage2D(texture->target, texture->mipmapCount, internalFormat, width, height);
}
#ifndef LOVR_WEBGL
#ifdef LOVR_GL
} else {
for (uint32_t i = 0; i < texture->mipmapCount; i++) {
switch (texture->type) {