mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
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
This commit is contained in:
parent
16a84f52b8
commit
70a472bed1
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue