🐛 Create the texture save buffer for streamed textures
Textures loaded from file never had their buffer allocated, so any save attempt crashed with an access violation.
This commit is contained in:
@@ -63,6 +63,7 @@ begin
|
|||||||
else
|
else
|
||||||
size := 128;
|
size := 128;
|
||||||
FGraphic := TSingleImage.CreateFromParams(size, size, ifX1R5G5B5);
|
FGraphic := TSingleImage.CreateFromParams(size, size, ifX1R5G5B5);
|
||||||
|
FBuffer := TMemoryStream.Create;
|
||||||
if assigned(AData) then
|
if assigned(AData) then
|
||||||
begin
|
begin
|
||||||
AData.Position := AIndex.Lookup;
|
AData.Position := AIndex.Lookup;
|
||||||
|
|||||||
Reference in New Issue
Block a user