Fixed a crash with --no-graphics
This commit is contained in:
parent
80fd62c7d8
commit
d2a28f18f7
@ -795,6 +795,9 @@ void IrrDriver::getOpenGLData(std::string *vendor, std::string *renderer,
|
||||
std::string *version)
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (ProfileWorld::isNoGraphics())
|
||||
return;
|
||||
|
||||
*vendor = (char*)glGetString(GL_VENDOR );
|
||||
*renderer = (char*)glGetString(GL_RENDERER);
|
||||
*version = (char*)glGetString(GL_VERSION );
|
||||
|
Loading…
x
Reference in New Issue
Block a user