Patch [#7743] Enable display lists when vertex arrays are enabled, by Ovidiu Sabou.

this patch enable GE two use both vertex array and display lists. and speed up the engine a little, by the way thanks ovidiu.
This commit is contained in:
Hamed Zaghaghi
2007-11-06 18:39:16 +00:00
parent af169b41fd
commit bf4d79c47b
4 changed files with 84 additions and 23 deletions

View File

@@ -533,7 +533,11 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
goto initFailed;
if(useLists)
m_rasterizer = new RAS_ListRasterizer(m_canvas);
if (useVertexArrays) {
m_rasterizer = new RAS_ListRasterizer(m_canvas, true);
} else {
m_rasterizer = new RAS_ListRasterizer(m_canvas);
}
else if (useVertexArrays && bgl::QueryVersion(1, 1))
m_rasterizer = new RAS_VAOpenGLRasterizer(m_canvas);
else