Fixed build
This commit is contained in:
parent
7fae3b67cd
commit
4ea833cc6b
@ -254,7 +254,7 @@ void Texture2D::apply(State& state) const
|
|||||||
// compute the dimensions of the texture.
|
// compute the dimensions of the texture.
|
||||||
computeRequiredTextureDimensions(state,*image,_textureWidth, _textureHeight, _numMipmapLevels);
|
computeRequiredTextureDimensions(state,*image,_textureWidth, _textureHeight, _numMipmapLevels);
|
||||||
|
|
||||||
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(_image) : 0;
|
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(_image.get()) : 0;
|
||||||
textureObject = generateAndAssignTextureObject(contextID, GL_TEXTURE_2D, _numMipmapLevels,
|
textureObject = generateAndAssignTextureObject(contextID, GL_TEXTURE_2D, _numMipmapLevels,
|
||||||
texStorageSizedInternalFormat!=0 ? texStorageSizedInternalFormat : _internalFormat,
|
texStorageSizedInternalFormat!=0 ? texStorageSizedInternalFormat : _internalFormat,
|
||||||
_textureWidth, _textureHeight, 1, _borderWidth);
|
_textureWidth, _textureHeight, 1, _borderWidth);
|
||||||
|
@ -336,7 +336,7 @@ void Texture2DArray::apply(State& state) const
|
|||||||
// compute the internal texture format, this set the _internalFormat to an appropriate value.
|
// compute the internal texture format, this set the _internalFormat to an appropriate value.
|
||||||
computeInternalFormat();
|
computeInternalFormat();
|
||||||
|
|
||||||
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(_images[0]) : 0;
|
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(_images[0].get()) : 0;
|
||||||
|
|
||||||
// compute the dimensions of the texture.
|
// compute the dimensions of the texture.
|
||||||
computeRequiredTextureDimensions(state,*_images[0],_textureWidth, _textureHeight, _numMipmapLevels);
|
computeRequiredTextureDimensions(state,*_images[0],_textureWidth, _textureHeight, _numMipmapLevels);
|
||||||
|
@ -293,7 +293,7 @@ void TextureCubeMap::apply(State& state) const
|
|||||||
_textureWidth = _textureHeight = minimum( _textureWidth , _textureHeight );
|
_textureWidth = _textureHeight = minimum( _textureWidth , _textureHeight );
|
||||||
}
|
}
|
||||||
|
|
||||||
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(_images[0]) : 0;
|
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(_images[0].get()) : 0;
|
||||||
|
|
||||||
textureObject = generateAndAssignTextureObject(
|
textureObject = generateAndAssignTextureObject(
|
||||||
contextID, GL_TEXTURE_CUBE_MAP, _numMipmapLevels,
|
contextID, GL_TEXTURE_CUBE_MAP, _numMipmapLevels,
|
||||||
|
@ -240,7 +240,7 @@ void TextureRectangle::apply(State& state) const
|
|||||||
computeInternalFormat();
|
computeInternalFormat();
|
||||||
|
|
||||||
//get sizedInternalFormat if TexStorage available
|
//get sizedInternalFormat if TexStorage available
|
||||||
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(image) : 0;
|
GLenum texStorageSizedInternalFormat = extensions->isTextureStorageEnabled && (_borderWidth==0) ? selectSizedInternalFormat(image.get()) : 0;
|
||||||
|
|
||||||
_textureWidth = image->s();
|
_textureWidth = image->s();
|
||||||
_textureHeight = image->t();
|
_textureHeight = image->t();
|
||||||
|
Loading…
Reference in New Issue
Block a user