diff options
author | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2007-11-04 08:31:20 +0300 |
---|---|---|
committer | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2007-11-04 08:31:20 +0300 |
commit | aa774427f64916ef5713c01c5d23657b61a80003 (patch) | |
tree | b573b0a6b7fa892da9ddbcc9d200bd530f2a5e56 /source/gameengine | |
parent | 21eb3e11e0d4d42d23de6c27a5cdf83d36ac0774 (diff) |
GE Patch(#7684) by Ovidiu Sabou, Speedup patch for GE in OpenGL Display Lists.
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp index 7270a6d2a99..ed4cfb2ae42 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp @@ -62,7 +62,7 @@ void RAS_ListSlot::DrawList() } } if(m_list != 0) - glNewList((GLuint)m_list, GL_COMPILE_AND_EXECUTE); + glNewList((GLuint)m_list, GL_COMPILE); m_flag |= LIST_BEGIN; return; @@ -76,6 +76,7 @@ void RAS_ListSlot::EndList() glEndList(); m_flag = m_flag &~(LIST_BEGIN|LIST_MODIFY); m_flag |= LIST_END; + glCallList(m_list); } } |