diff --git a/src/main/kotlin/uno/gln/jogl/program.kt b/src/main/kotlin/uno/gln/jogl/program.kt index f8b8afa..cd79b3b 100644 --- a/src/main/kotlin/uno/gln/jogl/program.kt +++ b/src/main/kotlin/uno/gln/jogl/program.kt @@ -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) } \ No newline at end of file