commit 21b2921ef7a5a17955bbd6bef696f29b0956c4ff parent 58aa3fd22d2a55905474a34cdc3b23ee150bca29 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Aug 1 23:21:22 +0200 Free vertex/fragment shaders when we are done with them Diffstat:
heightmap.cc | | | 3 | +++ |
diff --git a/heightmap.cc b/heightmap.cc @@ -122,6 +122,9 @@ GLuint compile_shader( const char * const vert, const char * const frag, const c glBindFragDataLocation( prog, 0, out ); glLinkProgram( prog ); + glDeleteShader( vs ); + glDeleteShader( fs ); + check_link_status( prog ); return prog;