https://bugs.winehq.org/show_bug.cgi?id=42119
--- Comment #9 from Sergey Isakov isakov-sl@bk.ru --- Created attachment 63630 --> https://bugs.winehq.org/attachment.cgi?id=63630 GL_ARB_map_buffer_range is not supported
I found in adapter_gl.c a note ~~~ /* GL_ARB_map_buffer_range and GL_APPLE_flush_buffer_range provide the same * functionality. Prefer the ARB extension */ ~~~ and then check with glxinfo. Yes, I have no GL_ARB_map_buffer_range and I have GL_APPLE_flush_buffer_range. This is macOS!
So there is a simple solution: - if GL_APPLE_flush_buffer_range is supported then report to game that GL_ARB_map_buffer_range is supported too. - but we have not to use GL_ARB_map_buffer_range and use GL_APPLE_flush_buffer_range when possible.
I know, this is macOS specific change and I am not sure if it reliable for linux. May be it will be better to use conditions like #ifdef _apple_