OpenSubdiv: Fix for missing caching of vendor string parsing result

This commit is contained in:
Sergey Sharybin 2015-09-16 20:23:32 +05:00
parent 19d17c8d90
commit 7b3491f2c6
2 changed files with 2 additions and 0 deletions

View File

@ -304,6 +304,7 @@ int openSubdiv_supportGPUDisplay(void)
static bool vendor_checked = false;
static bool is_intel = false;
if (!vendor_checked) {
vendor_checked = true;
const char *vendor = (const char *)glGetString(GL_VENDOR);
if (strstr(vendor, "Intel")) {
if(getenv("OPENSUBDIV_ALLOW_INTEL") == NULL) {

View File

@ -78,6 +78,7 @@ int openSubdiv_getAvailableEvaluators(void)
* hard time evaluating required shaders.
*/
if (!vendor_checked) {
vendor_checked = true;
const char *vendor = (const char *)glGetString(GL_VENDOR);
const char *renderer = (const char *)glGetString(GL_RENDERER);
if (strstr(vendor, "ATI") ||