Commit 6536a4b6 authored by hengli's avatar hengli

Disabled display lists in overlay geode for better rendering performance.

parent 28cb3bed
...@@ -36,14 +36,16 @@ GLOverlayGeode::messageTimestamp(void) const ...@@ -36,14 +36,16 @@ GLOverlayGeode::messageTimestamp(void) const
GLOverlayGeode::GLOverlayDrawable::GLOverlayDrawable() GLOverlayGeode::GLOverlayDrawable::GLOverlayDrawable()
{ {
setUseDisplayList(true); setUseDisplayList(false);
setUseVertexBufferObjects(true);
} }
GLOverlayGeode::GLOverlayDrawable::GLOverlayDrawable(const GLOverlayDrawable& drawable, GLOverlayGeode::GLOverlayDrawable::GLOverlayDrawable(const GLOverlayDrawable& drawable,
const osg::CopyOp& copyop) const osg::CopyOp& copyop)
: osg::Drawable(drawable,copyop) : osg::Drawable(drawable,copyop)
{ {
setUseDisplayList(true); setUseDisplayList(false);
setUseVertexBufferObjects(true);
} }
void void
...@@ -136,8 +138,6 @@ GLOverlayGeode::GLOverlayDrawable::setOverlay(px::GLOverlay &overlay) ...@@ -136,8 +138,6 @@ GLOverlayGeode::GLOverlayDrawable::setOverlay(px::GLOverlay &overlay)
break; break;
} }
} }
dirtyDisplayList();
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment