forked from mia/Aegisub
Fix a potential crash on exiting. (An invalid memory location could under certain circumstances be assigned to in the OpenGLTextTexture destructor.)
Originally committed to SVN as r3091.
This commit is contained in:
parent
b3a69668bf
commit
383d0f3149
1 changed files with 1 additions and 3 deletions
|
@ -268,10 +268,8 @@ OpenGLTextTexture::OpenGLTextTexture(int w,int h) {
|
|||
//////////////////////
|
||||
// Texture destructor
|
||||
OpenGLTextTexture::~OpenGLTextTexture() {
|
||||
if (tex) {
|
||||
if (tex)
|
||||
glDeleteTextures(1,&tex);
|
||||
tex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue