diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-16 18:23:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-16 18:23:32 +0300 |
commit | 7b3491f2c65b842eaa266f2e95822876fff93946 (patch) | |
tree | 049854dddd68455bca64cee8a28d0dd6a685b4a0 /intern/opensubdiv/opensubdiv_capi.cc | |
parent | 19d17c8d908039b73b3437432b62da8dd268e05c (diff) |
OpenSubdiv: Fix for missing caching of vendor string parsing result
Diffstat (limited to 'intern/opensubdiv/opensubdiv_capi.cc')
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.cc b/intern/opensubdiv/opensubdiv_capi.cc index a56e29f31b3..11cf170365e 100644 --- a/intern/opensubdiv/opensubdiv_capi.cc +++ b/intern/opensubdiv/opensubdiv_capi.cc @@ -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) { |