internal static void RebindTexture(ITexture texture) { for (var slot = 0; slot < textures.Length; slot++) { if (textures[slot] == texture) { Context.SetTexture(slot, texture?.GetPlatformTexture()); } } }
public static void SetTexture(int slot, ITexture texture) { Context.SetTexture(slot, texture?.GetPlatformTexture()); textures[slot] = texture; }