예제 #1
0
        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();
        }
예제 #2
0
        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);
                }
            }
        }
예제 #3
0
 protected override void freeInternalResources()
 {
     this.surfaceList.Clear();
     GL.DeleteTextures(1, ref this.textureID);
     GLES2Config.GlCheckError(this);
 }