Commit b03dde4d authored by Xiang, Haihao's avatar Xiang, Haihao

test/putsurface/putsurface: pass a valid DRAWABLE to vaPutSurface

parent 3452cb67
...@@ -163,6 +163,11 @@ static void* putsurface_thread(void *data) ...@@ -163,6 +163,11 @@ static void* putsurface_thread(void *data)
pixmap = pixmap_thread1; pixmap = pixmap_thread1;
context = context_thread1; context = context_thread1;
} }
if (put_pixmap)
draw = pixmap;
else
draw = win;
#endif #endif
printf("vaPutSurface into a Window directly\n\n"); printf("vaPutSurface into a Window directly\n\n");
......
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