comparison libvo/vo_gl.c @ 31093:039666e46bec

Minor code cleanup.
author reimar
date Sun, 09 May 2010 21:29:21 +0000
parents 91db38be8309
children 7299c551a7cd
comparison
equal deleted inserted replaced
31092:91db38be8309 31093:039666e46bec
485 int ver = atoi(version + 4); 485 int ver = atoi(version + 4);
486 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);
487 ati_broken_pbo = ver && ver < 8395; 487 ati_broken_pbo = ver && ver < 8395;
488 } 488 }
489 if (ati_hack == -1) ati_hack = ati_broken_pbo; 489 if (ati_hack == -1) ati_hack = ati_broken_pbo;
490 if (extensions && force_pbo == -1) 490 if (force_pbo == -1 && extensions && strstr(extensions, "_pixel_buffer_object"))
491 force_pbo = strstr(extensions, "_pixel_buffer_object") ? is_ati : 0; 491 force_pbo = is_ati;
492 if (extensions && use_rectangle == -1) 492 if (use_rectangle == -1 && extensions && strstr(extensions, "_texture_non_power_of_two"))
493 use_rectangle = strstr(extensions, "_texture_non_power_of_two") ? 0 : 0; 493 use_rectangle = 0;
494 if (use_osd == -1) 494 if (use_osd == -1)
495 use_osd = mpglBindTexture != NULL; 495 use_osd = mpglBindTexture != NULL;
496 if (use_yuv == -1) 496 if (use_yuv == -1)
497 use_yuv = glAutodetectYUVConversion(); 497 use_yuv = glAutodetectYUVConversion();
498 if (is_ati && (lscale == 1 || lscale == 2 || cscale == 1 || cscale == 2)) 498 if (is_ati && (lscale == 1 || lscale == 2 || cscale == 1 || cscale == 2))