public void Terminate( ) { if (null != this.mSTVideoCapture) { this.mSTVideoCapture.Terminate( ); } if (0 != mTextureOpenGLHandleBGR256x256) { GR gr = this.mGR; // Delete OpenGL texture object int[] temp = new int[1]; temp[0] = this.mTextureOpenGLHandleBGR256x256; gr.glDeleteTextures(1, temp); } this.Clear( ); }