(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// MonoGame - Copyright (C) The MonoGame Team
|
||||
// This file is subject to the terms and conditions defined in
|
||||
// file 'LICENSE.txt', which is part of this source code package.
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Microsoft.Xna.Framework.Graphics
|
||||
{
|
||||
public abstract partial class Texture
|
||||
{
|
||||
internal int glTexture = -1;
|
||||
internal SamplerState glLastSamplerState;
|
||||
|
||||
private void PlatformGraphicsDeviceResetting()
|
||||
{
|
||||
glTexture = -1;
|
||||
glLastSamplerState = null;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (!IsDisposed)
|
||||
{
|
||||
glTexture = -1;
|
||||
glLastSamplerState = null;
|
||||
}
|
||||
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user