Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-09-16 18:33:16 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-09-16 18:33:16 +0300
commitcf4711bdf944f5a6d067352e071a476ba11579a0 (patch)
treef092e4bd3e0a4884f25b0f8e6a7539009ab9716e /intern/opensubdiv/opensubdiv_capi.cc
parent0f19e6d1a70b985603a49ad2b7cd2c9b98365ce9 (diff)
OpenSubdiv: Attempt to solve crash in background mode
Diffstat (limited to 'intern/opensubdiv/opensubdiv_capi.cc')
-rw-r--r--intern/opensubdiv/opensubdiv_capi.cc2
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;
}