Fixed handling of GL_TEXTURE_CUBE_MAP when using glTextureStorage.
This commit is contained in:
parent
054727cb00
commit
dfec052eb9
@ -2285,8 +2285,18 @@ void Texture::applyTexImage2D_load(State& state, GLenum target, const Image* ima
|
||||
}
|
||||
|
||||
if(useTexStorrage)
|
||||
{
|
||||
if (getTextureTarget()==GL_TEXTURE_CUBE_MAP)
|
||||
{
|
||||
if (target==GL_TEXTURE_CUBE_MAP_POSITIVE_X)
|
||||
{
|
||||
extensions->glTexStorage2D(GL_TEXTURE_CUBE_MAP, numMipmapLevels, sizedInternalFormat, width, height);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
extensions->glTexStorage2D(target, numMipmapLevels, sizedInternalFormat, width, height);
|
||||
}
|
||||
|
||||
if( !compressed_image )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user