DeleteProgram() private method

private DeleteProgram ( UInt32 program ) : void
program System.UInt32
return void
Example #1
0
        public override void Dispose()
        {
            disposeChilderen();
            if (program != 0)
            {
                if (!IPlatform.Singleton.AutoDisposedGL)
                {
                    GL.UseProgram(0);
                    GL.DeleteProgram(program);
                }
                program = 0;

                                #if DEBUG && !ANDROID
                Video.checkForError();
                                #endif
            }
            base.Dispose();
        }