opengl32: Skip debug callback messages called from native thread.

This commit is contained in:
Paul Gofman 2023-08-11 17:57:29 -06:00 committed by Alexandre Julliard
parent 6bd87223bf
commit 51b6715327

View file

@ -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;