Fix thumbnails. On some OpenGL implementations they weren't working.
authorStepan777 <stepik-777@mail.ru>
Sat, 07 Jul 2012 19:17:50 +0400
changeset 7363 09af8bc9181f
parent 7361 b73d7688dadc
child 7365 26df99967963
Fix thumbnails. On some OpenGL implementations they weren't working.
hedgewars/uVideoRec.pas
--- a/hedgewars/uVideoRec.pas	Sat Jul 07 17:43:10 2012 +0400
+++ b/hedgewars/uVideoRec.pas	Sat Jul 07 19:17:50 2012 +0400
@@ -253,8 +253,6 @@
     RecPrefix:= FormatDateTime('YYYY-MM-DD_HH-mm-ss', Now());
 
     thumbnailSaved:= false;
-    if (not (gameState in [gsLandGen, gsStart])) and (ScreenFade = sfNone) then
-        SaveThumbnail();
 
     Mix_QuerySpec(@frequency, @format, @channels);
     AddFileLog('sound: frequency = ' + IntToStr(frequency) + ', format = ' + IntToStr(format) + ', channels = ' + IntToStr(channels));
@@ -307,9 +305,6 @@
     Close(cameraFile);
     Mix_SetPostMix(nil, nil);
     SDL_UnlockAudio();
-
-    if (not thumbnailSaved) then
-        SaveThumbnail();
 end;
 
 procedure SaveCameraPosition;