Skip to content

Commit

Permalink
jogl gln deleteProgram
Browse files Browse the repository at this point in the history
  • Loading branch information
elect86 committed Aug 7, 2017
1 parent 6865d40 commit 1f1a8cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/uno/gln/jogl/program.kt
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,5 @@ object ProgramBase {

fun GL3.glUseProgram() = glUseProgram(0)
fun GL3.glUseProgram(program: Program) = glUseProgram(program.name)
fun GL3.glDeleteProgram(program: Program) = glDeleteProgram(program.name)
fun GL3.glDeletePrograms(vararg programs: Int) = programs.forEach { glDeleteProgram(it) }

0 comments on commit 1f1a8cf

Please sign in to comment.