Added Unbind call to Index-,VertexBuffer, VertexArray and Texture2D before deleting

This commit is contained in:
miku-666
2023-10-29 12:10:27 +01:00
parent 3134ef402f
commit 905066db6a
4 changed files with 4 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ namespace PckStudio.Rendering
public void Dispose()
{
Unbind();
GL.DeleteBuffer(_id);
}
}

View File

@@ -59,6 +59,7 @@ namespace PckStudio.Rendering
public void Dispose()
{
Unbind();
GL.DeleteTexture(_id);
}

View File

@@ -45,6 +45,7 @@ namespace PckStudio.Rendering
public void Dispose()
{
Unbind();
GL.DeleteVertexArray(_id);
}
}

View File

@@ -41,6 +41,7 @@ namespace PckStudio.Rendering
public void Dispose()
{
Unbind();
GL.DeleteBuffer(_id);
}
}