From 006f4dd600404aab3f59cb135c0ab5effcc170e0 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 17 Nov 2013 05:47:38 -0400 Subject: [PATCH] Fixed --- src/modules/graphics/opengl/OpenGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/graphics/opengl/OpenGL.cpp b/src/modules/graphics/opengl/OpenGL.cpp index 9279434da..baf2368c4 100644 --- a/src/modules/graphics/opengl/OpenGL.cpp +++ b/src/modules/graphics/opengl/OpenGL.cpp @@ -53,6 +53,7 @@ void OpenGL::initContext() return; initOpenGLFunctions(); + initVendor(); // Store the current color so we don't have to get it through GL later. GLfloat glcolor[4]; @@ -126,7 +127,10 @@ void OpenGL::initVendor() { 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"))