diff options
author | Mike Erwin <significant.bit@gmail.com> | 2015-11-14 21:27:09 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2015-11-14 21:27:09 +0300 |
commit | 175f8e49e7c3d769f1e4cfcad0c7754c088e6c32 (patch) | |
tree | ea859a76bb139405f43160c9082d96e4da6c0ed1 | |
parent | 9ac08840ae7e9bd802329e9443da87d4e0dbe5a0 (diff) |
enable OpenSubdiv on Intel graphics
Tested working on Haswell i5-4670 running Windows 10.
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.cc b/intern/opensubdiv/opensubdiv_capi.cc index 66598948daf..804cc39a585 100644 --- a/intern/opensubdiv/opensubdiv_capi.cc +++ b/intern/opensubdiv/opensubdiv_capi.cc @@ -295,28 +295,6 @@ const struct OpenSubdiv_TopologyRefinerDescr *openSubdiv_getGLMeshTopologyRefine int openSubdiv_supportGPUDisplay(void) { - { - /* Currently Intel GPUs has hard time working on Windows. - * - * For until we've got access to a hardware which demonstrates - * the issue we disable OpenSubdiv on Intel GPUs. - */ - 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 (vendor != NULL && strstr(vendor, "Intel")) { - if(getenv("OPENSUBDIV_ALLOW_INTEL") == NULL) { - is_intel = true; - } - } - } - if (is_intel) { - return false; - } - } - return GLEW_EXT_geometry_shader4 && GLEW_ARB_gpu_shader5 && GLEW_ARB_uniform_buffer_object; |