mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
OpenSubdiv: Fix for missing caching of vendor string parsing result
This commit is contained in:
parent
19d17c8d90
commit
7b3491f2c6
2 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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") ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue