void hmd_common_free() { fbo_delete(&L_fbo); fbo_delete(&R_fbo); glsl_delete(&distortion); if (L_vbo) glDeleteBuffers_(1, &L_vbo); if (R_vbo) glDeleteBuffers_(1, &R_vbo); }
void scm_scene::set_frag(const std::string &s) { frag_file = s; glsl_delete(&render); if (!vert_file.empty() && !frag_file.empty()) glsl_source(&render, vert_file.c_str(), -1, frag_file.c_str(), -1); init_uniforms(); }