DEADSOFTWARE

Fix texture preview on Linux
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Sat, 12 May 2018 10:27:32 +0000 (13:27 +0300)
committerStas'M <x86corez@gmail.com>
Sat, 12 May 2018 10:46:49 +0000 (13:46 +0300)
src/editor/f_addresource_texture.pas

index df0b55559f2aa34550dd653363cd36041499de83..32a4da1d8b8c96597489e82f5474cb9f50f438ab 100644 (file)
@@ -299,6 +299,9 @@ begin
       ii^ := clr.b; Inc(ii);
       ii^ := clr.g; Inc(ii);
       ii^ := clr.r; Inc(ii);
+
+      (* Why this works in linux? *)
+      {$IFNDEF WINDOWS}Inc(ii){$ENDIF}
     end;
   end;
   FreeImage(img);