Refactored FontRenderer, fixed Sandbox2D

This commit is contained in:
Simon Lübeß
2021-08-15 13:20:38 +02:00
parent f5f3bad8db
commit d200c2c849
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -136,7 +136,7 @@ namespace Sandbox
Font fonty ~ _.ReleaseRef();
VertexLayout layout ~ delete _;
VertexLayout layout ~ _?.ReleaseRef();
GeometryBinding quadBinding ~ _?.ReleaseRef();
@@ -308,6 +308,7 @@ namespace Sandbox
Renderer2D.End();
*/
_alphaBlendState.Bind();
Renderer2D.Begin(.FrontToBack, .(_context.SwapChain.Width, _context.SwapChain.Height));