From 8b5918f7194cae0c5cf3fb0d03e677e6d50cf7f8 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Sat, 12 May 2018 13:27:32 +0300 Subject: [PATCH] Fix texture preview on Linux --- src/editor/f_addresource_texture.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor/f_addresource_texture.pas b/src/editor/f_addresource_texture.pas index df0b555..32a4da1 100644 --- a/src/editor/f_addresource_texture.pas +++ b/src/editor/f_addresource_texture.pas @@ -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); -- 2.29.2