Removed broken logging
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user