From 70a472bed1750f5d9437431e9f2391dd44182f8d Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Thu, 28 Jan 2016 06:07:07 +0000 Subject: [PATCH] GL_Init: log gl_vendor, gl_renderer, gl_version to the console. Taken from RMQEngine. the idea is to ensure every -condebug log has the gfx driver version logged. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1284 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/gl_vidsdl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index 169eba7e..d711a04c 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -1231,6 +1231,10 @@ static void GL_Init (void) gl_version = (const char *) glGetString (GL_VERSION); gl_extensions = (const char *) glGetString (GL_EXTENSIONS); + Con_SafePrintf ("GL_VENDOR: %s\n", gl_vendor); + Con_SafePrintf ("GL_RENDERER: %s\n", gl_renderer); + Con_SafePrintf ("GL_VERSION: %s\n", gl_version); + if (gl_version == NULL || sscanf(gl_version, "%d.%d", &gl_version_major, &gl_version_minor) < 2) { gl_version_major = 0;