diff --git a/Diamond/GLObject.cs b/Diamond/GLObject.cs index d8fb81f..a12b26a 100644 --- a/Diamond/GLObject.cs +++ b/Diamond/GLObject.cs @@ -21,7 +21,6 @@ namespace Diamond protected GLObject(uint id) { Id = id; - Debug.WriteLine($"Created GLObject {ToString()} ({Id})"); } /// @@ -36,11 +35,10 @@ namespace Diamond { if (GraphicsContext.CurrentContext == null) { - Debug.WriteLine($"No active context. Assuming {this} ({Id}) is disposed.", "[Warning]"); + Debug.WriteLine($"No current context, assuming {GetType().Name} {Id} is disposed.", "Warning"); return; } Delete(); - Debug.WriteLine($"Disposed GLObject {ToString()} ({Id})"); GC.SuppressFinalize(this); } diff --git a/Diamond/Shaders/Program.cs b/Diamond/Shaders/Program.cs index bf51710..d3a9452 100644 --- a/Diamond/Shaders/Program.cs +++ b/Diamond/Shaders/Program.cs @@ -95,19 +95,7 @@ namespace Diamond.Shaders GL.VertexAttribPointer(loc, attr.Size, attr.Type, attr.Normalized, vdi.Stride, attr.Offset); } } - -// public void EnableAllAttribArrays() -// { -// foreach (var loc in attributes.Values) -// GL.EnableVertexAttribArray(loc); -// } -// -// public void DisableAllAttribArrays() -// { -// foreach (var loc in attributes.Values) -// GL.DisableVertexAttribArray(loc); -// } - + public void Use() { GL.UseProgram(Id);