Clean references to disposed textures.

This commit is contained in:
Paul Chote
2019-08-30 22:13:05 +01:00
committed by RoosterDragon
parent d712bdea85
commit 91c63034d3
2 changed files with 18 additions and 2 deletions

View File

@@ -297,6 +297,9 @@ namespace OpenRA.Platforms.Default
public delegate void DeleteTextures(int n, ref uint textures);
public static DeleteTextures glDeleteTextures { get; private set; }
public delegate bool IsTexture(uint texture);
public static IsTexture glIsTexture { get; private set; }
public delegate void BindTexture(int target, uint texture);
public static BindTexture glBindTexture { get; private set; }
@@ -423,6 +426,7 @@ namespace OpenRA.Platforms.Default
glReadPixels = Bind<ReadPixels>("glReadPixels");
glGenTextures = Bind<GenTextures>("glGenTextures");
glDeleteTextures = Bind<DeleteTextures>("glDeleteTextures");
glIsTexture = Bind<IsTexture>("glIsTexture");
glBindTexture = Bind<BindTexture>("glBindTexture");
glActiveTexture = Bind<ActiveTexture>("glActiveTexture");
glTexImage2D = Bind<TexImage2D>("glTexImage2D");