mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 03:00:36 +01:00
GS/OGL: Fix recursive macro compile error
On some Intel drivers.
This commit is contained in:
1 parent
8679755d18
commit
615e30fa52
1 file changed
+8
-4
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user