summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2015-03-29 12:50:10 +0200
committerThomas Reufer <thomas@reufer.ch>2015-03-29 12:50:10 +0200
commit7db291b8b02743e977cff0c95102d193a5c131ec (patch)
treec60c2a87eba94c53ec02bccc75f3a1a9b40bdced
parent2b94d1aa125d694d7b469b3067e0bb81123ae02f (diff)
downloadvdr-plugin-rpihddevice-7db291b8b02743e977cff0c95102d193a5c131ec.tar.gz
vdr-plugin-rpihddevice-7db291b8b02743e977cff0c95102d193a5c131ec.tar.bz2
make default surface active when creating new pixel buffer
-rw-r--r--ovgosd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ovgosd.c b/ovgosd.c
index 2879cb6..f137496 100644
--- a/ovgosd.c
+++ b/ovgosd.c
@@ -755,6 +755,9 @@ public:
virtual bool Execute(cEgl *egl)
{
+ if (!m_target->MakeCurrent(egl))
+ return false;
+
m_target->image = vgCreateImage(VG_sARGB_8888, m_target->width,
m_target->height, VG_IMAGE_QUALITY_BETTER);