From 6ae0dba659b06ed5b54e0a99b0c3bef55283579b 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:19:27 +0100 Subject: [PATCH] Fix compilation issue on Mac and other graphics drivers --- simgear/scene/viewer/ClusteredShading.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/viewer/ClusteredShading.cxx b/simgear/scene/viewer/ClusteredShading.cxx index a0031f38..3ec63c8e 100644 --- a/simgear/scene/viewer/ClusteredShading.cxx +++ b/simgear/scene/viewer/ClusteredShading.cxx @@ -72,7 +72,7 @@ ClusteredShading::ClusteredShading(osg::Camera *camera, // clusters can change at runtime (viewport resize) osg::ref_ptr clusters_tex = new osg::Texture3D; - clusters_tex->setInternalFormat(GL_RGBA32F); + clusters_tex->setInternalFormat(GL_RGBA32F_ARB); clusters_tex->setResizeNonPowerOfTwoHint(false); clusters_tex->setWrap(osg::Texture3D::WRAP_R, osg::Texture3D::CLAMP_TO_BORDER); clusters_tex->setWrap(osg::Texture3D::WRAP_S, osg::Texture3D::CLAMP_TO_BORDER);