mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: add support of Intel GPU on Windows
It requires at least an Ivy Bridge GPU.
This commit is contained in:
parent
8539805691
commit
ed21d88735
|
@ -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");
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue