Corrected call sites of KRTexture2D::uploadTexture that were still sending a GLenum as the first argument.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user