mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 19:07:20 +00:00
opengl32: Skip debug callback messages called from native thread.
This commit is contained in:
parent
6bd87223bf
commit
51b6715327
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue