Skip to content

Commit

Permalink
Fix warning in Godot 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Jan 14, 2024
1 parent 13050f6 commit 22fd781
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dear ImGui for Godot Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
<EmbeddedResource Remove="doc\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ImGui.NET" Version="1.90.0.1" />
<PackageReference Include="ImGui.NET" Version="1.90.1.1" />
</ItemGroup>
</Project>
10 changes: 8 additions & 2 deletions addons/imgui-godot/ImGuiGodot/Internal/RdRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,15 @@ protected void RenderOne(Rid fb, ImDrawDataPtr drawData)
SetupBuffers(drawData);

// draw
const RenderingDevice.FinalAction finalAction =
#if GODOT4_3_OR_GREATER
RenderingDevice.FinalAction.Store;
#else
RenderingDevice.FinalAction.Read;
#endif
long dl = RD.DrawListBegin(fb,
RenderingDevice.InitialAction.Clear, RenderingDevice.FinalAction.Read,
RenderingDevice.InitialAction.Clear, RenderingDevice.FinalAction.Read,
RenderingDevice.InitialAction.Clear, finalAction,
RenderingDevice.InitialAction.Clear, finalAction,
_clearColors, 1f, 0, _zeroRect, _storageTextures);

RD.DrawListBindRenderPipeline(dl, _pipeline);
Expand Down

0 comments on commit 22fd781

Please sign in to comment.