diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2011-05-13 15:43:51 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2011-05-16 11:56:21 +0800 |
commit | b03dde4dde23ce3d7ad5e66a778099c19ddc9b2c (patch) | |
tree | 92ec1300f75be2bb981b00d1a48b3f35a4939358 | |
parent | 3452cb67dab3f59b4d4831ea885b5d17c7bc8b07 (diff) | |
download | libva-b03dde4dde23ce3d7ad5e66a778099c19ddc9b2c.tar.gz |
test/putsurface/putsurface: pass a valid DRAWABLE to vaPutSurface
-rw-r--r-- | test/putsurface/putsurface_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/putsurface/putsurface_common.c b/test/putsurface/putsurface_common.c index 23736ca..1bf4e1e 100644 --- a/test/putsurface/putsurface_common.c +++ b/test/putsurface/putsurface_common.c @@ -163,6 +163,11 @@ static void* putsurface_thread(void *data) pixmap = pixmap_thread1; context = context_thread1; } + + if (put_pixmap) + draw = pixmap; + else + draw = win; #endif printf("vaPutSurface into a Window directly\n\n"); |