}
case GL_DEPTH_COMPONENT16:
{
- thePixelFormat = GL_DEPTH;
+ thePixelFormat = GL_DEPTH_COMPONENT;
theDataType = GL_UNSIGNED_SHORT;
return true;
}
case GL_DEPTH_COMPONENT24:
{
- thePixelFormat = GL_DEPTH;
+ thePixelFormat = GL_DEPTH_COMPONENT;
theDataType = GL_UNSIGNED_INT;
return true;
}
case GL_DEPTH_COMPONENT32F:
{
- thePixelFormat = GL_DEPTH;
+ thePixelFormat = GL_DEPTH_COMPONENT;
theDataType = GL_FLOAT;
return true;
}
#define GL_DEPTH24_STENCIL8 0x88F0
// OpenGL ES 3.0+
+ #define GL_DEPTH_COMPONENT24 0x81A6
#define GL_DEPTH_COMPONENT32F 0x8CAC
#define GL_DEPTH32F_STENCIL8 0x8CAD
#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD