mirror of https://github.com/PCSX2/pcsx2.git
GS/OGL: Fix recursive macro compile error
On some Intel drivers.
This commit is contained in:
parent
8679755d18
commit
615e30fa52
|
@ -1298,10 +1298,14 @@ std::string GSDeviceOGL::GenGlslHeader(const std::string_view& entry, GLenum typ
|
|||
pxAssert(0);
|
||||
}
|
||||
|
||||
// Select the entry point ie the main function
|
||||
header += "#define ";
|
||||
header += entry;
|
||||
header += " main\n";
|
||||
// Don't remove this, the recursive macro breaks some Intel drivers.
|
||||
if (entry != "main")
|
||||
{
|
||||
// Select the entry point ie the main function
|
||||
header += "#define ";
|
||||
header += entry;
|
||||
header += " main\n";
|
||||
}
|
||||
|
||||
header += macro;
|
||||
|
||||
|
|
Loading…
Reference in New Issue