diff --git a/SMCode/SM.Base/Window/GenericWindow.cs b/SMCode/SM.Base/Window/GenericWindow.cs index 7aa2751..1c56bad 100644 --- a/SMCode/SM.Base/Window/GenericWindow.cs +++ b/SMCode/SM.Base/Window/GenericWindow.cs @@ -20,8 +20,7 @@ namespace SM.Base public abstract class GenericWindow : GameWindow { private bool _loading = false; - - + /// /// This tells you the current world scale. /// diff --git a/SMCode/SM.OGL/GLObject.cs b/SMCode/SM.OGL/GLObject.cs index 6f52109..cd8ecec 100644 --- a/SMCode/SM.OGL/GLObject.cs +++ b/SMCode/SM.OGL/GLObject.cs @@ -80,15 +80,10 @@ namespace SM.OGL if (GLSystem.Debugging) GL.ObjectLabel(TypeIdentifier, _id, name.Length, name); } - protected virtual int GetID() - { - return _id; - } - /// /// Returns the ID for the object. /// /// - public static implicit operator int(GLObject glo) => glo.GetID(); + public static implicit operator int(GLObject glo) => glo.ID; } } \ No newline at end of file diff --git a/SMCode/SM.OGL/GLSystem.cs b/SMCode/SM.OGL/GLSystem.cs index ab4e7b2..6cd41cc 100644 --- a/SMCode/SM.OGL/GLSystem.cs +++ b/SMCode/SM.OGL/GLSystem.cs @@ -48,7 +48,7 @@ namespace SM.OGL ShadingVersion = Version.CreateGLVersion(GL.GetString(StringName.ShadingLanguageVersion)); Extensions = GL.GetString(StringName.Extensions).Split(' '); - Debugging = Extensions.Contains("KHR_debug"); + Debugging = Extensions.Contains("khr_debug"); if (Debugging) GLDebugging.EnableDebugging(); _init = true;