🚨 Check the arrow texture height, not the width twice
This commit is contained in:
@@ -111,7 +111,7 @@ end;
|
||||
|
||||
procedure TGLArrow.UpdateTexture;
|
||||
begin
|
||||
if (FGraphic <> nil) and (FRealWidth > 0) and (FRealWidth > 0) then
|
||||
if (FGraphic <> nil) and (FRealWidth > 0) and (FRealHeight > 0) then
|
||||
begin
|
||||
FTexture := CreateGLTextureFromImage(FGraphic.ImageDataPointer^, 0, 0, False);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user