diff options
author | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2008-02-04 05:33:27 +0300 |
---|---|---|
committer | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2008-02-04 05:33:27 +0300 |
commit | 47b53510a56e80a6d82589334437ffbc706b5b67 (patch) | |
tree | ff48818dab8312318fa61c6130c62960ee6b9c78 /source/gameengine/GamePlayer/ghost/GPG_Application.cpp | |
parent | 2da3bd32dd34e44a326a30c43b33e75dc65ce95a (diff) | |
parent | bf4d79c47b9865a75ab0d6bb5649a8edce53a57d (diff) |
merging game_engine branch changes into trunk, 2d-filters and opengl speedup
Diffstat (limited to 'source/gameengine/GamePlayer/ghost/GPG_Application.cpp')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_Application.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp index 4f6c78a0fd8..5ef20514390 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp @@ -537,7 +537,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 |