Skip to content

Commit

Permalink
Fix compilation to use TTextureResources.Get
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Jun 23, 2023
1 parent 1281fb1 commit c949545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scene/castleinternalrenderer_texture.inc
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ class function TTextureResources.Bind(ANode: TAbstractTextureNode;
var
TextureRes: TTextureResource;
begin
TextureRes := TextureNode(ANode);
TextureRes := Get(ANode);
Result := TextureRes <> nil;
if Result then
Result := TextureRes.Bind(TextureUnit);
Expand All @@ -681,7 +681,7 @@ class function TTextureResources.Enable(ANode: TAbstractTextureNode;
var
TextureRes: TTextureResource;
begin
TextureRes := TextureNode(ANode);
TextureRes := Get(ANode);
Result := TextureRes <> nil;
if Result then
Result := TextureRes.Enable(TextureUnit, Shader, Env);
Expand Down

0 comments on commit c949545

Please sign in to comment.