mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Add an empty compileGLObjects implementation to Rig/MorphGeometry to avoid unnecessary creation of display list done by osg
This commit is contained in:
parent
40f6497f40
commit
6c79c0fb35
@ -21,6 +21,9 @@ namespace SceneUtil
|
||||
/// @note The source geometry will not be modified.
|
||||
void setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeom);
|
||||
|
||||
// Currently empty as this is difficult to implement. Technically we would need to compile both internal geometries in separate frames but this method is only called once. Alternatively we could compile just the static parts of the model.
|
||||
virtual void compileGLObjects(osg::RenderInfo& renderInfo) const {}
|
||||
|
||||
class MorphTarget
|
||||
{
|
||||
protected:
|
||||
|
@ -23,8 +23,8 @@ namespace SceneUtil
|
||||
|
||||
META_Object(SceneUtil, RigGeometry)
|
||||
|
||||
// At this point compileGLObjects() remains unimplemented, hard to avoid race conditions
|
||||
// and there is limited value in compiling anyway since the data will change again for the next frame
|
||||
// Currently empty as this is difficult to implement. Technically we would need to compile both internal geometries in separate frames but this method is only called once. Alternatively we could compile just the static parts of the model.
|
||||
virtual void compileGLObjects(osg::RenderInfo& renderInfo) const {}
|
||||
|
||||
struct BoneInfluence
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user