mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-05 06:07:07 +00:00
Added Unbind call to Index-,VertexBuffer, VertexArray and Texture2D before deleting
This commit is contained in:
@@ -36,6 +36,7 @@ namespace PckStudio.Rendering
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Unbind();
|
||||
GL.DeleteBuffer(_id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,7 @@ namespace PckStudio.Rendering
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Unbind();
|
||||
GL.DeleteTexture(_id);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace PckStudio.Rendering
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Unbind();
|
||||
GL.DeleteVertexArray(_id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace PckStudio.Rendering
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Unbind();
|
||||
GL.DeleteBuffer(_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user