aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Waller <p@pwaller.net>2014-04-30 13:50:16 +0100
committerPeter Waller <p@pwaller.net>2014-04-30 13:50:16 +0100
commitd47a845d3800034f53bf89b80f70d655c8344858 (patch)
treebe272fa5dec99318757ca2f24687961bcd865aac
parent32530b025d26c89f9d3ff5921f45aaf3ac4b1258 (diff)
parent75540552181fc09e0c6d95ff8a93b77a3218402d (diff)
downloadgl-d47a845d3800034f53bf89b80f70d655c8344858.tar.gz
Merge pull request #147 from tbruyelle/fix-code-design
Fix code design for the program type
-rw-r--r--program.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/program.go b/program.go
index 9dcef76..0bb67a0 100644
--- a/program.go
+++ b/program.go
@@ -60,6 +60,9 @@ func (program Program) Validate() { C.glValidateProgram(C.GLuint(program)) }
func (program Program) Use() { C.glUseProgram(C.GLuint(program)) }
+func (program Program) Unuse() { C.glUseProgram(C.GLuint(0)) }
+
+// Deprecated, please use program.Unuse()
func ProgramUnuse() { C.glUseProgram(C.GLuint(0)) }
func (program Program) GetInfoLog() string {