use different workaround for macOS bug

This commit is contained in:
FunkyFr3sh 2018-07-06 00:32:47 +02:00
parent 75c25f515b
commit 30b430dbc7

View file

@ -101,13 +101,10 @@ DWORD WINAPI render_main(void)
glCheckFramebufferStatus && glUniform4f && glActiveTexture && glUniform1i &&
glGetAttribLocation && glGenBuffers && glBindBuffer && glBufferData && glVertexAttribPointer &&
glEnableVertexAttribArray && glUniform2fv && glUniformMatrix4fv && glGenVertexArrays && glBindVertexArray &&
glGetUniformLocation;
glGetUniformLocation && OpenglVersion[0] != '2';
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);