Removed broken logging
This commit is contained in:
@@ -21,7 +21,6 @@ namespace Diamond
|
|||||||
protected GLObject(uint id)
|
protected GLObject(uint id)
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
Debug.WriteLine($"Created GLObject {ToString()} ({Id})");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -36,11 +35,10 @@ namespace Diamond
|
|||||||
{
|
{
|
||||||
if (GraphicsContext.CurrentContext == null)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
Delete();
|
Delete();
|
||||||
Debug.WriteLine($"Disposed GLObject {ToString()} ({Id})");
|
|
||||||
GC.SuppressFinalize(this);
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,18 +96,6 @@ namespace Diamond.Shaders
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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()
|
public void Use()
|
||||||
{
|
{
|
||||||
GL.UseProgram(Id);
|
GL.UseProgram(Id);
|
||||||
|
|||||||
Reference in New Issue
Block a user