mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
use different workaround for macOS bug
This commit is contained in:
parent
75c25f515b
commit
30b430dbc7
@ -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…
x
Reference in New Issue
Block a user