mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed compiler bugs
Stuff happens when you don't work on a project for half a year!
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -9,10 +9,6 @@ namespace GlitchyEngine.Core
|
||||
*/
|
||||
public class RefCounter : RefCounted, IDisposable
|
||||
{
|
||||
protected ~this()
|
||||
{
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
ReleaseRef();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user