mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026834: Visualization, OpenGl_FrameBuffer - use GL_DEPTH_COMPONENT instead of GL_DEPTH for texture initialization
getDepthDataFormat method uses correct enumeration for GL_DEPTH_COMPONENT texture now
This commit is contained in:
@@ -42,19 +42,19 @@ namespace
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user