Removed broken logging

This commit is contained in:
2017-02-27 11:03:35 -05:00
parent d7b393fb9e
commit 5a30be5435
2 changed files with 2 additions and 16 deletions

View File

@@ -21,7 +21,6 @@ namespace Diamond
protected GLObject(uint id)
{
Id = id;
Debug.WriteLine($"Created GLObject {ToString()} ({Id})");
}
/// <summary>
@@ -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);
}

View File

@@ -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);