Fixed compiler bugs

Stuff happens when you don't work on a project for half a year!
This commit is contained in:
Simon Lübeß
2026-04-11 09:35:45 +02:00
parent 1b8cc93834
commit 28a9242023
6 changed files with 44 additions and 13 deletions
+3 -3
View File
@@ -45,12 +45,12 @@ abstract class Asset : RefCounter
Content.ManageAsset(this);
}
protected ~this()
{
//protected ~this()
//{
// TODO: crash when _contentManager is deleted first...
// TODO: unregister from content manager
//_contentManager?.UnmanageAsset(this);
}
//}
static void AssetSerialize(BonWriter writer, ValueView value, BonEnvironment environment, SerializeValueState state)
{
-4
View File
@@ -9,10 +9,6 @@ namespace GlitchyEngine.Core
*/
public class RefCounter : RefCounted, IDisposable
{
protected ~this()
{
}
public void Dispose()
{
ReleaseRef();
+2 -2
View File
@@ -122,10 +122,10 @@ namespace GlitchyEngine.World
}
});
/*if (_font == null)
if (_font == null)
_font = new Font(@"C:\Windows\Fonts\arial.ttf", 24);
else
_font..AddRef();*/
_font..AddRef();
//_font = new Font(@"C:\Windows\Fonts\Cascadia Code.ttf", 24);
}