1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

temporary workaround for macOS bug with crossover wine 14.1

This commit is contained in:
FunkyFr3sh 2018-07-05 23:51:27 +02:00
parent 2e6a264738
commit 75c25f515b

View File

@ -105,6 +105,9 @@ DWORD WINAPI render_main(void)
BOOL gotOpenglV2 = glGetUniformLocation && glActiveTexture && glUniform1i;
if (gotOpenglV3 && GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version")) // macOS+wine bug
gotOpenglV3 = FALSE;
GLuint paletteConvProgram = 0;
if (gotOpenglV3)
paletteConvProgram = OpenGL_BuildProgram(PassthroughVertShaderSrc, PaletteFragShaderSrc);