Fixed depth component type

This commit is contained in:
Robert Osfield 2020-12-30 12:46:49 +00:00
parent b3d39de208
commit faae6288a5

View File

@ -294,7 +294,7 @@ void Leia::configure(osgViewer::View& view) const
int camera_height = tex_height; int camera_height = tex_height;
osg::ref_ptr<osg::Texture2DArray> color_texture = createTexture2DArray(tex_width, tex_height, 4, GL_RGBA); osg::ref_ptr<osg::Texture2DArray> color_texture = createTexture2DArray(tex_width, tex_height, 4, GL_RGBA);
osg::ref_ptr<osg::Texture2DArray> depth_texture = createTexture2DArray(tex_width, tex_height, 4, GL_RGBA); osg::ref_ptr<osg::Texture2DArray> depth_texture = createTexture2DArray(tex_width, tex_height, 4, GL_DEPTH_COMPONENT);
osg::Camera::RenderTargetImplementation renderTargetImplementation = osg::Camera::FRAME_BUFFER_OBJECT; osg::Camera::RenderTargetImplementation renderTargetImplementation = osg::Camera::FRAME_BUFFER_OBJECT;
GLenum buffer = GL_FRONT; GLenum buffer = GL_FRONT;