enable OpenSubdiv on Intel graphics
Tested working on Haswell i5-4670 running Windows 10.
This commit is contained in:
@@ -295,28 +295,6 @@ const struct OpenSubdiv_TopologyRefinerDescr *openSubdiv_getGLMeshTopologyRefine
|
|||||||
|
|
||||||
int openSubdiv_supportGPUDisplay(void)
|
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 &&
|
return GLEW_EXT_geometry_shader4 &&
|
||||||
GLEW_ARB_gpu_shader5 &&
|
GLEW_ARB_gpu_shader5 &&
|
||||||
GLEW_ARB_uniform_buffer_object;
|
GLEW_ARB_uniform_buffer_object;
|
||||||
|
Reference in New Issue
Block a user