Commit b5944186 authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/xvba_video_glx.c: Add extra check for debugging.

parent 2983b7c9
...@@ -169,7 +169,7 @@ static void *render_thread(void *arg) ...@@ -169,7 +169,7 @@ static void *render_thread(void *arg)
/* Use the application provided display */ /* Use the application provided display */
Display * const x11_dpy = driver_data->x11_dpy; Display * const x11_dpy = driver_data->x11_dpy;
ASSERT(obj_output->render_context); ASSERT(obj_output->render_context == NULL);
GLContextState old_cs; GLContextState old_cs;
obj_output->render_context = gl_create_context( obj_output->render_context = gl_create_context(
...@@ -234,6 +234,7 @@ static void *render_thread(void *arg) ...@@ -234,6 +234,7 @@ static void *render_thread(void *arg)
gl_destroy_context(obj_output->render_context); gl_destroy_context(obj_output->render_context);
gl_set_current_context(&old_cs, NULL); gl_set_current_context(&old_cs, NULL);
return NULL; return NULL;
} }
......
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