OpenGLRenderer: Fix context activation

This commit is contained in:
Jérôme Leclercq 2020-09-03 13:18:09 +02:00
parent 0a46b83061
commit df33262ab4
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ namespace Nz::GL
bool Context::Initialize(const ContextParams& params)
{
if (!Activate())
if (!SetCurrentContext(this))
{
NazaraError("failed to activate context");
return false;

View File

@ -265,7 +265,7 @@ namespace Nz::GL
bool WGLContext::LoadWGLExt()
{
if (!Activate())
if (!SetCurrentContext(this))
return false;
#define NAZARA_OPENGLRENDERER_FUNC(name, sig)