GS/OGL: Fix recursive macro compile error

On some Intel drivers.
This commit is contained in:
Stenzek
2024-03-29 22:40:55 +10:00
committed by Connor McLaughlin
parent 8679755d18
commit 615e30fa52

View File

@@ -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;