diff --git a/src/render.c b/src/render.c index c6ec874..1e6202e 100644 --- a/src/render.c +++ b/src/render.c @@ -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);