Paul Gofman : opengl32: Skip debug callback messages called from native thread.
Module: wine Branch: master Commit: 51b671532715bd2a0486a2c7ddf23134d81ba688 URL: https://gitlab.winehq.org/wine/wine/-/commit/51b671532715bd2a0486a2c7ddf2313... Author: Paul Gofman <pgofman(a)codeweavers.com> Date: Fri Aug 11 17:57:29 2023 -0600 opengl32: Skip debug callback messages called from native thread. --- dlls/opengl32/unix_wgl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/opengl32/unix_wgl.c b/dlls/opengl32/unix_wgl.c index cf819e96df2..4cf12893541 100644 --- a/dlls/opengl32/unix_wgl.c +++ b/dlls/opengl32/unix_wgl.c @@ -903,8 +903,15 @@ static void gl_debug_message_callback( GLenum source, GLenum type, GLuint id, GL }; void *ret_ptr; ULONG ret_len; - struct wgl_handle *ptr = (struct wgl_handle *)userParam; + + if (!NtCurrentTeb()) + { + fprintf( stderr, "msg:gl_debug_message_callback called from native thread, severity %#x, message \"%.*s\".\n", + severity, length, message ); + return; + } + if (!(params.user_callback = ptr->u.context->debug_callback)) return; params.user_data = ptr->u.context->debug_user;
participants (1)
-
Alexandre Julliard