Skip to content
Snippets Groups Projects
Commit 4f466797 authored by Philip Trettner's avatar Philip Trettner
Browse files

working on fixing depth stencil issues

parent 88ddba87
Branches
No related tags found
No related merge requests found
......@@ -179,6 +179,8 @@ inline bool isDepthInternalFormat(GLenum internalFormat)
case GL_DEPTH_COMPONENT32:
case GL_DEPTH_COMPONENT32F:
case GL_DEPTH_STENCIL:
case GL_DEPTH24_STENCIL8:
case GL_DEPTH32F_STENCIL8:
return true;
default:
......@@ -191,7 +193,13 @@ inline bool isStencilInternalFormat(GLenum internalFormat)
switch (internalFormat)
{
case GL_DEPTH_STENCIL:
case GL_DEPTH24_STENCIL8:
case GL_DEPTH32F_STENCIL8:
case GL_STENCIL_INDEX:
case GL_STENCIL_INDEX1:
case GL_STENCIL_INDEX4:
case GL_STENCIL_INDEX8:
case GL_STENCIL_INDEX16:
return true;
default:
......@@ -361,6 +369,8 @@ inline GLuint channelsOfInternalFormat(GLenum internalFormat)
case GL_RG:
case GL_DEPTH_STENCIL: // ?
case GL_DEPTH24_STENCIL8: // ?
case GL_DEPTH32F_STENCIL8: // ?
return 2;
case GL_RGB:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment