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