This commit is contained in:
Henrik Rydgård 2017-10-16 14:34:11 +02:00
parent ad4bc3f9f4
commit 861c11f709

View File

@ -779,12 +779,14 @@ static bool Thin3DFormatToFormatAndType(DataFormat fmt, GLuint &internalFormat,
type = GL_FLOAT;
break;
#ifndef USING_GLES2
case DataFormat::S8:
internalFormat = GL_STENCIL_INDEX;
format = GL_STENCIL_INDEX;
type = GL_UNSIGNED_BYTE;
alignment = 1;
break;
#endif
case DataFormat::R8G8B8_UNORM:
internalFormat = GL_RGB;