Export the free texture function

This commit is contained in:
Kovid Goyal
2017-09-29 07:53:13 +05:30
parent 9078ca975e
commit 710d00674a
4 changed files with 12 additions and 1 deletions

View File

@@ -90,6 +90,13 @@ static void
update_viewport_size_impl(int w, int h) {
glViewport(0, 0, w, h); check_gl();
}
static void
free_texture_impl(GLuint *tex_id) {
glDeleteTextures(1, tex_id); check_gl();
*tex_id = 0;
}
// }}}
// Programs {{{