Commits

Alex Szpakowski committed 77c9f8d

Fixed

Comments (0)

Files changed (1)

src/modules/graphics/opengl/OpenGL.cpp

 		return;
 
 	initOpenGLFunctions();
+	initVendor();
 
 	// Store the current color so we don't have to get it through GL later.
 	GLfloat glcolor[4];
 {
 	const char *vstr = (const char *) glGetString(GL_VENDOR);
 	if (!vstr)
+	{
+		vendor = VENDOR_UNKNOWN;
 		return;
+	}
 
 	// http://feedback.wildfiregames.com/report/opengl/feature/GL_VENDOR
 	if (strstr(vstr, "ATI Technologies"))