OpenGLRenderer: Fix context activation
This commit is contained in:
parent
0a46b83061
commit
df33262ab4
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ namespace Nz::GL
|
|||
|
||||
bool WGLContext::LoadWGLExt()
|
||||
{
|
||||
if (!Activate())
|
||||
if (!SetCurrentContext(this))
|
||||
return false;
|
||||
|
||||
#define NAZARA_OPENGLRENDERER_FUNC(name, sig)
|
||||
|
|
|
|||
Loading…
Reference in New Issue