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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user