use different workaround for macOS bug
This commit is contained in:
parent
75c25f515b
commit
30b430dbc7
1 changed files with 1 additions and 4 deletions
|
@ -101,13 +101,10 @@ DWORD WINAPI render_main(void)
|
||||||
glCheckFramebufferStatus && glUniform4f && glActiveTexture && glUniform1i &&
|
glCheckFramebufferStatus && glUniform4f && glActiveTexture && glUniform1i &&
|
||||||
glGetAttribLocation && glGenBuffers && glBindBuffer && glBufferData && glVertexAttribPointer &&
|
glGetAttribLocation && glGenBuffers && glBindBuffer && glBufferData && glVertexAttribPointer &&
|
||||||
glEnableVertexAttribArray && glUniform2fv && glUniformMatrix4fv && glGenVertexArrays && glBindVertexArray &&
|
glEnableVertexAttribArray && glUniform2fv && glUniformMatrix4fv && glGenVertexArrays && glBindVertexArray &&
|
||||||
glGetUniformLocation;
|
glGetUniformLocation && OpenglVersion[0] != '2';
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue