Commit 51b67153 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

opengl32: Skip debug callback messages called from native thread.

parent 6bd87223
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment