1) Finally fixed (hopefully) all crashes related to HW buffers (replaced two
more deletes with drop). 2) Simplified skidmarks by completely removing the saved meshes. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5679 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
d0b96f462e
commit
87256f58e8
@ -196,8 +196,8 @@ void SkidMarks::update(float dt)
|
||||
irr_driver->removeNode(m_nodes[m_current]);
|
||||
// Not necessary to delete m_nodes: removeNode
|
||||
// deletes the node since its refcount reaches zero.
|
||||
delete m_left [m_current];
|
||||
delete m_right [m_current];
|
||||
m_left[m_current]->drop();
|
||||
m_right[m_current]->drop();
|
||||
|
||||
m_left [m_current] = smq_left;
|
||||
m_right [m_current] = smq_right;
|
||||
|
Loading…
x
Reference in New Issue
Block a user