aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/directfb/directfb/fix-client-gfx_state-initialisation.patch
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-07-04 16:45:53 +0300
committerMartin Jansa <Martin.Jansa@gmail.com>2016-07-29 11:00:53 +0200
commit273be2ecc2dd4402dd44a8d377892ab2e83f60b3 (patch)
treedea88947ba13ccd050462fdb697f237cd7e7a52b /meta-oe/recipes-graphics/directfb/directfb/fix-client-gfx_state-initialisation.patch
parent37e1dd154b8516966fee5d01b689d2abf5fe0679 (diff)
downloadmeta-openembedded-contrib-273be2ecc2dd4402dd44a8d377892ab2e83f60b3.tar.gz
directfb: move recipe to meta-oe
directfb.org has been down for about a year now. Since there are active users for this recipe, it makes sense to move this from oe-core to meta-oe. Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'meta-oe/recipes-graphics/directfb/directfb/fix-client-gfx_state-initialisation.patch')
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb/fix-client-gfx_state-initialisation.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/directfb/directfb/fix-client-gfx_state-initialisation.patch b/meta-oe/recipes-graphics/directfb/directfb/fix-client-gfx_state-initialisation.patch
new file mode 100644
index 0000000000..57a9b0dc7e
--- /dev/null
+++ b/meta-oe/recipes-graphics/directfb/directfb/fix-client-gfx_state-initialisation.patch
@@ -0,0 +1,38 @@
+From 8e53c0b9cedb62b82e2b7680d793d433b647ae20 Mon Sep 17 00:00:00 2001
+From: Andre McCurdy <armccurdy@gmail.com>
+Date: Mon, 13 Jun 2016 13:32:44 -0700
+Subject: [PATCH] fix client->gfx_state initialisation
+
+Shortly before the DirectFB 1.7.7 release, an optimisation was added
+to CoreGraphicsStateClient_Init() to avoid creating an extended
+Graphics State object if it will not later be required:
+
+ 4d422fb Client: Create extended Graphics State object when needed for later usage
+
+Unfortunately the client->gfx_state variable used to track the
+extended Graphics State object is not initialised, which can lead to
+crashes etc due to creation of the Graphics State object erroneously
+being skipped.
+
+Upstream-Status: Pending
+
+Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
+---
+ src/core/CoreGraphicsStateClient.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/core/CoreGraphicsStateClient.cpp b/src/core/CoreGraphicsStateClient.cpp
+index 5d46f0e..5007755 100644
+--- a/src/core/CoreGraphicsStateClient.cpp
++++ b/src/core/CoreGraphicsStateClient.cpp
+@@ -364,6 +364,7 @@ CoreGraphicsStateClient_Init( CoreGraphicsStateClient *client,
+ client->renderer = NULL;
+ client->requestor = NULL;
+ client->throttle = NULL;
++ client->gfx_state = NULL;
+
+ if (dfb_config->task_manager) {
+ if (dfb_config->call_nodirect) {
+--
+1.9.1
+