--- a/hedgewars/uTextures.pas Tue Feb 11 22:05:03 2014 +0400
+++ b/hedgewars/uTextures.pas Wed Feb 12 00:50:15 2014 +0400
@@ -119,7 +119,7 @@
tw:= (tw and $FF shl RShift) or (tw and $FF shl BShift) or (tw and $FF shl GShift) or (fromP4^[x] and AMask);
fromP4^[x]:= tw;
end;
- fromP4:= @(fromP4^[Surf^.pitch div 4])
+ fromP4:= PLongWordArray(@(fromP4^[Surf^.pitch div 4]))
end;
end;
@@ -265,15 +265,15 @@
toP4^[x]:= fromP4^[x];
for x:= Surf^.w to Pred(tw) do
toP4^[x]:= 0;
- toP4:= @(toP4^[tw]);
- fromP4:= @(fromP4^[Surf^.pitch div 4])
+ toP4:= PLongWordArray(@(toP4^[tw]));
+ fromP4:= PLongWordArray(@(fromP4^[Surf^.pitch div 4]))
end;
for y:= Surf^.h to Pred(th) do
begin
for x:= 0 to Pred(tw) do
toP4^[x]:= 0;
- toP4:= @(toP4^[tw])
+ toP4:= PLongWordArray(@(toP4^[tw]))
end;
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tw, th, 0, GL_RGBA, GL_UNSIGNED_BYTE, tmpp);