OpenGLRenderer: Fix context activation
This commit is contained in:
@@ -147,7 +147,7 @@ namespace Nz::GL
|
|||||||
|
|
||||||
bool Context::Initialize(const ContextParams& params)
|
bool Context::Initialize(const ContextParams& params)
|
||||||
{
|
{
|
||||||
if (!Activate())
|
if (!SetCurrentContext(this))
|
||||||
{
|
{
|
||||||
NazaraError("failed to activate context");
|
NazaraError("failed to activate context");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ namespace Nz::GL
|
|||||||
|
|
||||||
bool WGLContext::LoadWGLExt()
|
bool WGLContext::LoadWGLExt()
|
||||||
{
|
{
|
||||||
if (!Activate())
|
if (!SetCurrentContext(this))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#define NAZARA_OPENGLRENDERER_FUNC(name, sig)
|
#define NAZARA_OPENGLRENDERER_FUNC(name, sig)
|
||||||
|
|||||||
Reference in New Issue
Block a user