1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 12:39:55 +00:00
scrawl c00532d82d Add LightStateCache to avoid redundantly setting the same gl_Light
Normally, osg::State would do this for us (via lastAppliedAttribute), but since we're using a custom StateAttribute to apply all lights at once, we have to track ourselves.

Further reduction of GL calls in a typical scene by ~2%
2017-02-07 23:37:57 +01:00
..
2016-02-12 14:46:45 +01:00
2015-03-26 18:02:51 +01:00
2016-01-03 16:43:20 +01:00
2016-05-18 12:17:26 -04:00
2016-08-14 16:44:11 +02:00