forked from Mirrors/openclonk
gl: Fixed incorrect delete on surface unlock
parent
860ef8b190
commit
f7588418c1
|
@ -792,7 +792,7 @@ bool CSurface::Unlock()
|
|||
// if tex refs exist, free them
|
||||
/*FreeTextures();*/
|
||||
// otherwise, emulated primary locks in OpenGL
|
||||
delete PrimarySurfaceLockBits;
|
||||
delete[] PrimarySurfaceLockBits;
|
||||
PrimarySurfaceLockBits = 0;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue