From 79b858d6d8352639efbea2e2698b37e270d48477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Garc=C3=ADa=20Li=C3=B1=C3=A1n?= Date: Mon, 16 Nov 2020 16:39:30 +0100 Subject: [PATCH] Replace more references to GL_RGBA32F with GL_RGBA32F_ARB --- simgear/scene/viewer/ClusteredShading.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/scene/viewer/ClusteredShading.cxx b/simgear/scene/viewer/ClusteredShading.cxx index 3ec63c8e..cb325544 100644 --- a/simgear/scene/viewer/ClusteredShading.cxx +++ b/simgear/scene/viewer/ClusteredShading.cxx @@ -93,7 +93,7 @@ ClusteredShading::ClusteredShading(osg::Camera *camera, _pointlights->allocateImage(5, MAX_POINTLIGHTS, 1, GL_RGBA, GL_FLOAT); osg::ref_ptr pointlights_tex = new osg::Texture2D; - pointlights_tex->setInternalFormat(GL_RGBA32F); + pointlights_tex->setInternalFormat(GL_RGBA32F_ARB); pointlights_tex->setResizeNonPowerOfTwoHint(false); pointlights_tex->setWrap(osg::Texture3D::WRAP_R, osg::Texture3D::CLAMP_TO_BORDER); pointlights_tex->setWrap(osg::Texture3D::WRAP_S, osg::Texture3D::CLAMP_TO_BORDER); @@ -114,7 +114,7 @@ ClusteredShading::ClusteredShading(osg::Camera *camera, _spotlights->allocateImage(7, MAX_SPOTLIGHTS, 1, GL_RGBA, GL_FLOAT); osg::ref_ptr spotlights_tex = new osg::Texture2D; - spotlights_tex->setInternalFormat(GL_RGBA32F); + spotlights_tex->setInternalFormat(GL_RGBA32F_ARB); spotlights_tex->setResizeNonPowerOfTwoHint(false); spotlights_tex->setWrap(osg::Texture3D::WRAP_R, osg::Texture3D::CLAMP_TO_BORDER); spotlights_tex->setWrap(osg::Texture3D::WRAP_S, osg::Texture3D::CLAMP_TO_BORDER);