From: Rémi Bernon rbernon@codeweavers.com
--- dlls/win32u/opengl.c | 5 +++++ dlls/winemac.drv/opengl.c | 5 ----- dlls/winewayland.drv/opengl.c | 5 ----- dlls/winex11.drv/opengl.c | 5 ----- 4 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/dlls/win32u/opengl.c b/dlls/win32u/opengl.c index 8eedc5c2344..fb67832ff37 100644 --- a/dlls/win32u/opengl.c +++ b/dlls/win32u/opengl.c @@ -517,6 +517,11 @@ static void display_funcs_init(void) */ register_extension( wgl_extensions, ARRAY_SIZE(wgl_extensions), "WGL_WINE_pixel_format_passthrough" ); display_funcs->p_wglSetPixelFormatWINE = win32u_wglSetPixelFormatWINE; + + register_extension( wgl_extensions, ARRAY_SIZE(wgl_extensions), "WGL_ARB_pixel_format" ); + display_funcs->p_wglChoosePixelFormatARB = (void *)1; /* never called */ + display_funcs->p_wglGetPixelFormatAttribfvARB = (void *)1; /* never called */ + display_funcs->p_wglGetPixelFormatAttribivARB = (void *)1; /* never called */ }
static struct opengl_funcs *get_dc_funcs( HDC hdc, void *null_funcs ) diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c index d97e01578b7..34315219d3c 100644 --- a/dlls/winemac.drv/opengl.c +++ b/dlls/winemac.drv/opengl.c @@ -3334,11 +3334,6 @@ static const char *macdrv_init_wgl_extensions(void) opengl_funcs.p_wglGetCurrentReadDCARB = (void *)1; /* never called */ opengl_funcs.p_wglMakeContextCurrentARB = macdrv_wglMakeContextCurrentARB;
- register_extension("WGL_ARB_pixel_format"); - opengl_funcs.p_wglChoosePixelFormatARB = (void *)1; /* never called */ - opengl_funcs.p_wglGetPixelFormatAttribfvARB = (void *)1; /* never called */ - opengl_funcs.p_wglGetPixelFormatAttribivARB = (void *)1; /* never called */ - if (gluCheckExtension((GLubyte*)"GL_ARB_color_buffer_float", (GLubyte*)gl_info.glExtensions)) { register_extension("WGL_ARB_pixel_format_float"); diff --git a/dlls/winewayland.drv/opengl.c b/dlls/winewayland.drv/opengl.c index d9af9a7247d..849a2c3730b 100644 --- a/dlls/winewayland.drv/opengl.c +++ b/dlls/winewayland.drv/opengl.c @@ -1190,11 +1190,6 @@ static const char *wayland_init_wgl_extensions(void) opengl_funcs.p_wglGetSwapIntervalEXT = wayland_wglGetSwapIntervalEXT; opengl_funcs.p_wglSwapIntervalEXT = wayland_wglSwapIntervalEXT;
- register_extension("WGL_ARB_pixel_format"); - opengl_funcs.p_wglChoosePixelFormatARB = (void *)1; /* never called */ - opengl_funcs.p_wglGetPixelFormatAttribfvARB = (void *)1; /* never called */ - opengl_funcs.p_wglGetPixelFormatAttribivARB = (void *)1; /* never called */ - if (has_egl_ext_pixel_format_float) { register_extension("WGL_ARB_pixel_format_float"); diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index b0c45b13aad..7a2799f9bac 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -2598,11 +2598,6 @@ static const char *x11drv_init_wgl_extensions(void) opengl_funcs.p_wglSetPbufferAttribARB = X11DRV_wglSetPbufferAttribARB; }
- register_extension( "WGL_ARB_pixel_format" ); - opengl_funcs.p_wglChoosePixelFormatARB = (void *)1; /* never called */ - opengl_funcs.p_wglGetPixelFormatAttribfvARB = (void *)1; /* never called */ - opengl_funcs.p_wglGetPixelFormatAttribivARB = (void *)1; /* never called */ - if (has_extension( glxExtensions, "GLX_ARB_fbconfig_float")) { register_extension("WGL_ARB_pixel_format_float");