From: Rémi Bernon <rbernon@codeweavers.com> --- dlls/opengl32/make_opengl | 7 ------- dlls/opengl32/unix_thunks.c | 7 ------- 2 files changed, 14 deletions(-) diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl index 47785e3531a..a8d8f51e3b0 100755 --- a/dlls/opengl32/make_opengl +++ b/dlls/opengl32/make_opengl @@ -1630,12 +1630,6 @@ foreach (sort keys %wgl_functions) print OUT generate_null_func($_, $wgl_functions{$_}); } -printf OUT "static void null_get_pixel_formats( struct wgl_pixel_format *formats, UINT max_formats,\n"; -printf OUT " UINT *num_formats, UINT *num_onscreen_formats )\n"; -printf OUT "{\n"; -printf OUT " WARN( \"unsupported\\n\" );\n"; -printf OUT " *num_formats = *num_onscreen_formats = 0;\n"; -printf OUT "}\n"; foreach (sort keys %norm_functions) { next if defined $manual_win_functions{$_}; @@ -1645,7 +1639,6 @@ print OUT "\n"; print OUT "struct opengl_funcs null_opengl_funcs =\n"; print OUT "{\n"; -print OUT " .p_get_pixel_formats = null_get_pixel_formats,\n"; foreach (sort keys %wgl_functions) { next if defined $manual_win_functions{$_}; diff --git a/dlls/opengl32/unix_thunks.c b/dlls/opengl32/unix_thunks.c index 16afcb68bc6..438d5705ea1 100644 --- a/dlls/opengl32/unix_thunks.c +++ b/dlls/opengl32/unix_thunks.c @@ -89988,12 +89988,6 @@ static BOOL null_wglSwapBuffers( HDC hdc ) WARN( "unsupported\n" ); return 0; } -static void null_get_pixel_formats( struct wgl_pixel_format *formats, UINT max_formats, - UINT *num_formats, UINT *num_onscreen_formats ) -{ - WARN( "unsupported\n" ); - *num_formats = *num_onscreen_formats = 0; -} static void null_glAccum( GLenum op, GLfloat value ) { WARN( "unsupported\n" ); @@ -91349,7 +91343,6 @@ static void null_glViewport( GLint x, GLint y, GLsizei width, GLsizei height ) struct opengl_funcs null_opengl_funcs = { - .p_get_pixel_formats = null_get_pixel_formats, .p_wglCopyContext = null_wglCopyContext, .p_wglCreateContext = null_wglCreateContext, .p_wglDeleteContext = null_wglDeleteContext, -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9991