mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed
This commit is contained in:
@@ -53,6 +53,7 @@ void OpenGL::initContext()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
initOpenGLFunctions();
|
initOpenGLFunctions();
|
||||||
|
initVendor();
|
||||||
|
|
||||||
// Store the current color so we don't have to get it through GL later.
|
// Store the current color so we don't have to get it through GL later.
|
||||||
GLfloat glcolor[4];
|
GLfloat glcolor[4];
|
||||||
@@ -126,7 +127,10 @@ void OpenGL::initVendor()
|
|||||||
{
|
{
|
||||||
const char *vstr = (const char *) glGetString(GL_VENDOR);
|
const char *vstr = (const char *) glGetString(GL_VENDOR);
|
||||||
if (!vstr)
|
if (!vstr)
|
||||||
|
{
|
||||||
|
vendor = VENDOR_UNKNOWN;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// http://feedback.wildfiregames.com/report/opengl/feature/GL_VENDOR
|
// http://feedback.wildfiregames.com/report/opengl/feature/GL_VENDOR
|
||||||
if (strstr(vstr, "ATI Technologies"))
|
if (strstr(vstr, "ATI Technologies"))
|
||||||
|
|||||||
Reference in New Issue
Block a user