Renderer GL: Don't leak shader/UBO handles

This commit is contained in:
wheremyfoodat 2024-07-20 23:18:52 +03:00
parent 5c40fb0cbf
commit f219432c6a
2 changed files with 15 additions and 9 deletions

View file

@ -117,6 +117,7 @@ class RendererGL final : public Renderer {
// Note: The caller is responsible for deleting the currently bound FBO before calling this
void setFBO(uint handle) { screenFramebuffer.m_handle = handle; }
void resetStateManager() { gl.reset(); }
void clearShaderCache();
void initUbershader(OpenGL::Program& program);
#ifdef PANDA3DS_FRONTEND_QT