Fixed a crash with --no-graphics

This commit is contained in:
Deve 2018-08-16 21:50:37 +02:00
parent 80fd62c7d8
commit d2a28f18f7

View File

@ -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 );