Fix some minor issues with GL loader

fixes #258
This commit is contained in:
sfan5
2023-12-17 18:10:39 +01:00
parent 0110826ce9
commit 6e6b4a6f3c
3 changed files with 20 additions and 14 deletions

View File

@ -780,9 +780,9 @@ public:
// Call this once after creating the context.
void LoadAllProcedures(irr::video::IContextManager *cmgr);
// Check if an extension is supported.
inline bool IsExtensionPresent(const std::string &ext)
inline bool IsExtensionPresent(const std::string &ext) const
{
return extensions.find(ext) != extensions.end();
return extensions.count(ext) > 0;
}
PFNGLCULLFACEPROC_MT CullFace = NULL;
@ -3191,5 +3191,5 @@ public:
static constexpr const GLenum NONE = 0;
};
//Global GL procedures object.
// Global GL procedures object.
IRRLICHT_API extern OpenGLProcedures GL;