gsdx-ogl: add support of Intel GPU on Windows

It requires at least an Ivy Bridge GPU.
This commit is contained in:
Gregory Hainaut 2015-08-18 19:05:50 +02:00
parent 8539805691
commit ed21d88735
2 changed files with 9 additions and 4 deletions

View File

@ -395,10 +395,6 @@ namespace GLLoader {
mesa_amd_buggy_driver = true;
if (strstr(vendor, "VMware")) // Assume worst case because I don't know the real status
mesa_amd_buggy_driver = intel_buggy_driver = true;
#ifdef _WINDOWS
if (intel_buggy_driver)
return false; // too much buggy no need to check anything.
#endif
if (mesa_amd_buggy_driver) {
fprintf(stderr, "Buggy driver detected. Geometry shaders will be disabled\n");

View File

@ -220,7 +220,16 @@ std::string GSShaderOGL::GenGlslHeader(const std::string& entry, GLenum type, co
// AMD/nvidia define it to 0
// intel window don't define it
// intel linux refuse to define it
#ifdef _WINDOWS
// Intel doesn't suppport properly gl_ClipDistance
// (use the existing macro to disable it)
if (GLLoader::intel_buggy_driver)
header += "#define pGL_ES 1\n";
else
header += "#define pGL_ES 0\n";
#else
header += "#define pGL_ES 0\n";
#endif
// Allow to puts several shader in 1 files
switch (type) {