gl: Fixed incorrect delete on surface unlock

Nicolas Hake 2010-10-11 18:17:58 +02:00
parent 860ef8b190
commit f7588418c1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}