changeset 11512 | bd9a2f1b0080 |
parent 11492 | 8e221d2a368e |
child 11537 | bf86c6cb9341 |
--- a/hedgewars/uTextures.pas Wed Jan 13 16:19:50 2016 +0100 +++ b/hedgewars/uTextures.pas Sun Jan 10 00:45:13 2016 +0300 @@ -239,7 +239,8 @@ glBindTexture(GL_TEXTURE_2D, Surface2Tex^.id); if SDL_MustLock(surf) then - SDLTry(SDL_LockSurface(surf) >= 0, 'Lock surface', true); + if SDLCheck(SDL_LockSurface(surf) >= 0, 'Lock surface', true) then + exit(nil); fromP4:= Surf^.pixels;