BGE memleak fix: OpenGL Display Lists not deleted when switching scene
authorBenoit Bolsee <benoit.bolsee@online.be>
Sun, 9 Mar 2008 22:02:32 +0000 (22:02 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Sun, 9 Mar 2008 22:02:32 +0000 (22:02 +0000)
commit1f0ae739cb952165488f13499f141ac3d20378e0
tree651ddff6a19f68a2d95745c2d0478511141bde0a
parent52293831b26f34547acf100603c87296deba7a60
BGE memleak fix: OpenGL Display Lists not deleted when switching scene

This fix also improves performance of Display List for replica objects: Display List ID caching is now enabled for replica objects which avoids a tree search on each frame and for each replica.
source/gameengine/Rasterizer/RAS_MaterialBucket.cpp
source/gameengine/Rasterizer/RAS_MaterialBucket.h
source/gameengine/Rasterizer/RAS_MeshObject.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_ListRasterizer.h