Corrected call sites of KRTexture2D::uploadTexture that were still sending a GLenum as the first argument.

This commit is contained in:
2022-07-18 22:57:01 -07:00
parent 97b2889568
commit c7ed12db80
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ bool KRTexture2D::createGPUTexture(int lod_max_dim) {
} }
if (success) { if (success) {
if (!uploadTexture(GL_TEXTURE_2D, lod_max_dim, m_new_lod_max_dim)) { if (!uploadTexture(lod_max_dim, m_new_lod_max_dim)) {
m_new_lod_max_dim = prev_lod_max_dim; m_new_lod_max_dim = prev_lod_max_dim;
success = false; success = false;
} }

View File

@@ -112,7 +112,7 @@ bool KRTextureCube::createGPUTexture(int lod_max_dim)
std::string faceName = getName() + SUFFIXES[i]; std::string faceName = getName() + SUFFIXES[i];
if(m_textures[i]) { if(m_textures[i]) {
if(m_textures[i]->hasMipmaps()) bMipMaps = true; if(m_textures[i]->hasMipmaps()) bMipMaps = true;
m_textures[i]->uploadTexture(TARGETS[i], lod_max_dim, m_new_lod_max_dim); m_textures[i]->uploadTexture(/* TARGETS[i], */lod_max_dim, m_new_lod_max_dim);
} }
} }