diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-16 18:33:16 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-16 18:33:16 +0300 |
commit | cf4711bdf944f5a6d067352e071a476ba11579a0 (patch) | |
tree | f092e4bd3e0a4884f25b0f8e6a7539009ab9716e /intern/opensubdiv/opensubdiv_capi.cc | |
parent | 0f19e6d1a70b985603a49ad2b7cd2c9b98365ce9 (diff) |
OpenSubdiv: Attempt to solve crash in background mode
Diffstat (limited to 'intern/opensubdiv/opensubdiv_capi.cc')
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.cc b/intern/opensubdiv/opensubdiv_capi.cc index 11cf170365e..66598948daf 100644 --- a/intern/opensubdiv/opensubdiv_capi.cc +++ b/intern/opensubdiv/opensubdiv_capi.cc @@ -306,7 +306,7 @@ int openSubdiv_supportGPUDisplay(void) if (!vendor_checked) { vendor_checked = true; const char *vendor = (const char *)glGetString(GL_VENDOR); - if (strstr(vendor, "Intel")) { + if (vendor != NULL && strstr(vendor, "Intel")) { if(getenv("OPENSUBDIV_ALLOW_INTEL") == NULL) { is_intel = true; } |