mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
GL_DEPTH_COMPONEN24 fix
This commit is contained in:
parent
655b40267b
commit
d90fa977e8
@ -285,7 +285,7 @@ public:
|
|||||||
|
|
||||||
mRefractionDepthTexture = new osg::Texture2D;
|
mRefractionDepthTexture = new osg::Texture2D;
|
||||||
mRefractionDepthTexture->setSourceFormat(GL_DEPTH_COMPONENT);
|
mRefractionDepthTexture->setSourceFormat(GL_DEPTH_COMPONENT);
|
||||||
mRefractionDepthTexture->setInternalFormat(GL_DEPTH_COMPONENT24_ARB);
|
mRefractionDepthTexture->setInternalFormat(GL_DEPTH_COMPONENT24);
|
||||||
mRefractionDepthTexture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE);
|
mRefractionDepthTexture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE);
|
||||||
mRefractionDepthTexture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE);
|
mRefractionDepthTexture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE);
|
||||||
mRefractionDepthTexture->setSourceType(GL_UNSIGNED_INT);
|
mRefractionDepthTexture->setSourceType(GL_UNSIGNED_INT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user