OpenGL: Implement debug callback

This commit is contained in:
Lynix
2020-04-19 15:19:16 +02:00
parent a842e89881
commit d62e99091f
4 changed files with 154 additions and 5 deletions

View File

@@ -59,10 +59,14 @@ namespace Nz::GL
protected:
virtual const Loader& GetLoader() = 0;
virtual bool ImplementFallback(const std::string_view& function) = 0;
virtual bool ImplementFallback(const std::string_view& function);
std::unordered_set<std::string> m_supportedExtensions;
ContextParams m_params;
private:
void GL_APIENTRY HandleDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message) const;
};
}