BGE: Fix T43761 No re-creation of display list after a mesh modification.

I also removed unused flags in RAS_ListRasterizer.cpp.
This commit is contained in:
Porteries Tristan 2015-05-17 00:41:31 +02:00
parent 4d45f47920
commit 3b359f1fea
Notes: blender-bot 2023-02-14 09:27:21 +01:00
Referenced by issue #43761, Changing vertex position creates permanent lag in rasterizer and cpu.
2 changed files with 4 additions and 11 deletions

View File

@ -79,10 +79,6 @@ void RAS_ListSlot::RemoveList()
void RAS_ListSlot::DrawList()
{
if (m_flag &LIST_STREAM || m_flag& LIST_NOCREATE) {
RemoveList();
return;
}
if (m_flag &LIST_MODIFY) {
if (m_flag &LIST_CREATE) {
if (m_list == 0) {
@ -115,7 +111,7 @@ void RAS_ListSlot::SetModified(bool mod)
if (mod && !(m_flag & LIST_MODIFY)) {
spit("Modifying list (" << m_list << ")");
m_flag = m_flag &~ LIST_END;
m_flag |= LIST_STREAM;
m_flag |= LIST_MODIFY;
}
}

View File

@ -35,12 +35,9 @@ public:
enum RAS_ListSlotFlags {
LIST_CREATE =1,
LIST_MODIFY =2,
LIST_STREAM =4,
LIST_NOCREATE =8,
LIST_BEGIN =16,
LIST_END =32,
LIST_REGEN =64,
LIST_DERIVEDMESH=128,
LIST_BEGIN =4,
LIST_END =8,
LIST_DERIVEDMESH=16,
};
struct DerivedMesh;