mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
GS/OGL: Fix recursive macro compile error
On some Intel drivers.
This commit is contained in:
committed by
Connor McLaughlin
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user