Fixed OpenGL Renderer and Vendor names
Former-commit-id: ce962b69924f6e78e51b6f2e86f1b6cccf7dc13e
This commit is contained in:
parent
09e3027129
commit
5bc3d3b46e
|
|
@ -1013,6 +1013,10 @@ bool NzOpenGL::Initialize()
|
||||||
|
|
||||||
/****************************************Initialisation****************************************/
|
/****************************************Initialisation****************************************/
|
||||||
|
|
||||||
|
s_contextStates = nullptr;
|
||||||
|
s_rendererName = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
|
||||||
|
s_vendorName = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
|
||||||
|
|
||||||
///FIXME: Utiliser le contexte de chargement comme référence ? (Vérifier mode debug)
|
///FIXME: Utiliser le contexte de chargement comme référence ? (Vérifier mode debug)
|
||||||
if (!NzContext::Initialize())
|
if (!NzContext::Initialize())
|
||||||
{
|
{
|
||||||
|
|
@ -1022,9 +1026,7 @@ bool NzOpenGL::Initialize()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
s_rendererName = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
|
// Le contexte OpenGL n'est plus assuré à partir d'ici
|
||||||
s_contextStates = nullptr;
|
|
||||||
s_vendorName = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue