Commit cbf30052 authored by Robert Menzel's avatar Robert Menzel

changed returned type and format for internal format GL_DEPTH24_STENCIL8

parent 0df5175f
......@@ -209,11 +209,13 @@ GLuint TextureBase::bindAndGetOldTexture() const
GLenum TextureBase::getCompatibleFormat( GLenum _internalFormat )
{
if (_internalFormat == GL_DEPTH24_STENCIL8) {
return GL_DEPTH_STENCIL;
}
if ( _internalFormat == GL_DEPTH_COMPONENT
|| _internalFormat == GL_DEPTH_COMPONENT16
|| _internalFormat == GL_DEPTH_COMPONENT24
|| _internalFormat == GL_DEPTH_COMPONENT32F
|| _internalFormat == GL_DEPTH24_STENCIL8) {
|| _internalFormat == GL_DEPTH_COMPONENT32F) {
return GL_DEPTH_COMPONENT;
}
......@@ -250,6 +252,9 @@ GLenum TextureBase::getCompatibleFormat( GLenum _internalFormat )
GLenum TextureBase::getCompatibleType( GLenum _internalFormat )
{
if (_internalFormat == GL_DEPTH24_STENCIL8) {
return GL_DEPTH24_STENCIL8;
}
if ( _internalFormat == GL_R8I
|| _internalFormat == GL_R8UI
|| _internalFormat == GL_R16I
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment