comparison libvo/vo_gl.c @ 31070:52eb10f9e51e

Also print OpenGL renderer string with vendor and version with -v
author reimar
date Sat, 01 May 2010 22:49:05 +0000
parents 7d174bdfcd9a
children 91db38be8309
comparison
equal deleted inserted replaced
31069:d7c792ed942e 31070:52eb10f9e51e
475 475
476 static void autodetectGlExtensions(void) { 476 static void autodetectGlExtensions(void) {
477 const char *extensions = mpglGetString(GL_EXTENSIONS); 477 const char *extensions = mpglGetString(GL_EXTENSIONS);
478 const char *vendor = mpglGetString(GL_VENDOR); 478 const char *vendor = mpglGetString(GL_VENDOR);
479 const char *version = mpglGetString(GL_VERSION); 479 const char *version = mpglGetString(GL_VERSION);
480 const char *renderer = mpglGetString(GL_RENDERER);
480 int is_ati = vendor && strstr(vendor, "ATI") != NULL; 481 int is_ati = vendor && strstr(vendor, "ATI") != NULL;
481 int ati_broken_pbo = 0; 482 int ati_broken_pbo = 0;
482 mp_msg(MSGT_VO, MSGL_V, "[gl] Running on OpenGL by '%s', versions '%s'\n", vendor, version); 483 mp_msg(MSGT_VO, MSGL_V, "[gl] Running on OpenGL '%s' by '%s', version '%s'\n", renderer, vendor, version);
483 if (is_ati && strncmp(version, "2.1.", 4) == 0) { 484 if (is_ati && strncmp(version, "2.1.", 4) == 0) {
484 int ver = atoi(version + 4); 485 int ver = atoi(version + 4);
485 mp_msg(MSGT_VO, MSGL_V, "[gl] Detected ATI driver version: %i\n", ver); 486 mp_msg(MSGT_VO, MSGL_V, "[gl] Detected ATI driver version: %i\n", ver);
486 ati_broken_pbo = ver && ver < 8395; 487 ati_broken_pbo = ver && ver < 8395;
487 } 488 }