Skip to content

Commit

Permalink
make CVertexArray safe against repeated destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
jK committed Jan 19, 2014
1 parent 3fe1754 commit 708c3d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rts/Rendering/GL/VertexArray.cpp
Expand Up @@ -21,6 +21,8 @@ CVertexArray::~CVertexArray()
{
delete[] drawArray;
delete[] stripArray;
drawArray = NULL;
stripArray = NULL;
}


Expand Down

3 comments on commit 708c3d6

@jamerlan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will cherry-pick this :-D TY

@jamerlan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cherry-picked this commit and it still freezes at game end! http://pastebin.com/eBXsPD7e

@jamerlan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

➜ ~ cat projects/spring96/spring/rts/Rendering/GL/VertexArray.cpp
...
CVertexArray::~CVertexArray()
{
delete[] drawArray;
delete[] stripArray;
drawArray = NULL;
stripArray = NULL;
}
...
so I have these changes and it still not fixes "freeze"

Please sign in to comment.