mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
temporary workaround for macOS bug with crossover wine 14.1
This commit is contained in:
parent
2e6a264738
commit
75c25f515b
@ -105,6 +105,9 @@ DWORD WINAPI render_main(void)
|
|||||||
|
|
||||||
BOOL gotOpenglV2 = glGetUniformLocation && glActiveTexture && glUniform1i;
|
BOOL gotOpenglV2 = glGetUniformLocation && glActiveTexture && glUniform1i;
|
||||||
|
|
||||||
|
if (gotOpenglV3 && GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version")) // macOS+wine bug
|
||||||
|
gotOpenglV3 = FALSE;
|
||||||
|
|
||||||
GLuint paletteConvProgram = 0;
|
GLuint paletteConvProgram = 0;
|
||||||
if (gotOpenglV3)
|
if (gotOpenglV3)
|
||||||
paletteConvProgram = OpenGL_BuildProgram(PassthroughVertShaderSrc, PaletteFragShaderSrc);
|
paletteConvProgram = OpenGL_BuildProgram(PassthroughVertShaderSrc, PaletteFragShaderSrc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user