From 7bfbda7188b58a5f8a3ba88e20dff1019ff9a760 Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Sun, 24 Sep 2017 22:10:44 +0200 Subject: [PATCH] Fix for AMD / Radeon rendering of lights as point sprites. Tested against R9-290 and GTX 550 Ti (thanks Nikolai V. Chr.) --- simgear/scene/tgdb/pt_lights.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/pt_lights.cxx b/simgear/scene/tgdb/pt_lights.cxx index 7c40d313..be82127e 100644 --- a/simgear/scene/tgdb/pt_lights.cxx +++ b/simgear/scene/tgdb/pt_lights.cxx @@ -275,7 +275,7 @@ SGLightFactory::getLights(const SGDirectionalLightBin& lights) //stateSet->setMode(GL_LIGHTING, osg::StateAttribute::OFF); osg::DrawArrays* drawArrays; - drawArrays = new osg::DrawArrays(osg::PrimitiveSet::TRIANGLES, + drawArrays = new osg::DrawArrays(osg::PrimitiveSet::POINTS, 0, vertices->size()); geometry->addPrimitiveSet(drawArrays); return geometry;