libvgcode - fixed OpenGLWrapper::unload_opengl()

This commit is contained in:
enricoturri1966 2024-03-07 13:15:21 +01:00 committed by Lukas Matena
parent 673127aeed
commit c7f61a795f

View File

@ -89,6 +89,11 @@ bool OpenGLWrapper::load_opengl(const std::string& context_version)
void OpenGLWrapper::unload_opengl()
{
#if VGCODE_ENABLE_OPENGL_ES
gladLoaderUnloadGLES2();
#else
gladLoaderUnloadGL();
#endif // VGCODE_ENABLE_OPENGL_ES
}
} // namespace libvgcode