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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user