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