OpenGLRenderer: Improve error handling (fixes Windows/x86 compilation)

Template specialization was failing because OpenGL function type have __stdcall convention on Windows/32bits
This commit is contained in:
Jérôme Leclercq
2021-11-02 09:43:30 +01:00
parent 9946c17a23
commit a643d0fc3a
4 changed files with 12 additions and 7 deletions

View File

@@ -26,6 +26,9 @@ namespace Nz
GL::ContextParams params;
params.type = loader.GetPreferredContextType();
#ifdef NAZARA_OPENGLRENDERER_DEBUG
params.wrapErrorHandling = true;
#endif
m_referenceContext = loader.CreateContext(this, params);
if (!m_referenceContext)