Commit 2929a3a0 authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard

wined3d: Use GL_APPLE_flush_render and GL_APPLE_rgb_422 to detect Apple OpenGL.

In addition to the existing GL_APPLE_ycbcr_422. Core contexts on Mac OS don't advertise GL_APPLE_fence or GL_APPLE_ycbcr_422... but they do have GL_APPLE_flush_render and GL_APPLE_rgb_422. So, go back to using GL_APPLE_flush_render in our OS X detection, and accept GL_APPLE_rgb_422 in addition to GL_APPLE_ycbcr_422. Signed-off-by: 's avatarChip Davis <cdavis@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 526e1138
...@@ -53,6 +53,8 @@ static const struct wined3d_extension_map gl_extension_map[] = ...@@ -53,6 +53,8 @@ static const struct wined3d_extension_map gl_extension_map[] =
{"GL_APPLE_fence", APPLE_FENCE }, {"GL_APPLE_fence", APPLE_FENCE },
{"GL_APPLE_float_pixels", APPLE_FLOAT_PIXELS }, {"GL_APPLE_float_pixels", APPLE_FLOAT_PIXELS },
{"GL_APPLE_flush_buffer_range", APPLE_FLUSH_BUFFER_RANGE }, {"GL_APPLE_flush_buffer_range", APPLE_FLUSH_BUFFER_RANGE },
{"GL_APPLE_flush_render", APPLE_FLUSH_RENDER },
{"GL_APPLE_rgb_422", APPLE_RGB_422 },
{"GL_APPLE_ycbcr_422", APPLE_YCBCR_422 }, {"GL_APPLE_ycbcr_422", APPLE_YCBCR_422 },
/* ARB */ /* ARB */
...@@ -1225,7 +1227,8 @@ static enum wined3d_gl_vendor wined3d_guess_gl_vendor(const struct wined3d_gl_in ...@@ -1225,7 +1227,8 @@ static enum wined3d_gl_vendor wined3d_guess_gl_vendor(const struct wined3d_gl_in
* is specific to the Mac OS X window management, and GL_APPLE_ycbcr_422 is QuickTime specific. So * is specific to the Mac OS X window management, and GL_APPLE_ycbcr_422 is QuickTime specific. So
* the chance that other implementations support them is rather small since Win32 QuickTime uses * the chance that other implementations support them is rather small since Win32 QuickTime uses
* DirectDraw, not OpenGL. */ * DirectDraw, not OpenGL. */
if (gl_info->supported[APPLE_FENCE] && gl_info->supported[APPLE_YCBCR_422]) if (gl_info->supported[APPLE_FLUSH_RENDER]
&& (gl_info->supported[APPLE_YCBCR_422] || gl_info->supported[APPLE_RGB_422]))
return GL_VENDOR_APPLE; return GL_VENDOR_APPLE;
if (strstr(gl_vendor_string, "NVIDIA")) if (strstr(gl_vendor_string, "NVIDIA"))
......
...@@ -37,6 +37,8 @@ enum wined3d_gl_extension ...@@ -37,6 +37,8 @@ enum wined3d_gl_extension
APPLE_FENCE, APPLE_FENCE,
APPLE_FLOAT_PIXELS, APPLE_FLOAT_PIXELS,
APPLE_FLUSH_BUFFER_RANGE, APPLE_FLUSH_BUFFER_RANGE,
APPLE_FLUSH_RENDER,
APPLE_RGB_422,
APPLE_YCBCR_422, APPLE_YCBCR_422,
/* ARB */ /* ARB */
ARB_BASE_INSTANCE, ARB_BASE_INSTANCE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment