public void ForceRetryToCreateTexture() { if (_name != 0) { if (GraphicsDevice.OpenGLESVersion == OpenTK.Graphics.GLContextVersion.Gles2_0) { GL20.DeleteTextures(1, ref _name); } else { GL11.DeleteTextures(1, ref _name); } _name = 0; } _textureCreated = false; RetryToCreateTexture(); }
public void Dispose() { if (_originalBitmap != null) { _originalBitmap.Dispose(); _originalBitmap = null; } if (_name != 0) { if (GraphicsDevice.OpenGLESVersion == OpenTK.Graphics.GLContextVersion.Gles2_0) { GL20.DeleteTextures(1, ref _name); } else { GL11.DeleteTextures(1, ref _name); } } }
protected override void freeInternalResources() { this.surfaceList.Clear(); GL.DeleteTextures(1, ref this.textureID); GLES2Config.GlCheckError(this); }