0006-fix-client-gfx_state-initialisation.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 8e53c0b9cedb62b82e2b7680d793d433b647ae20 Mon Sep 17 00:00:00 2001
  2. From: Andre McCurdy <armccurdy@gmail.com>
  3. Date: Mon, 13 Jun 2016 13:32:44 -0700
  4. Subject: [PATCH] fix client->gfx_state initialisation
  5. Shortly before the DirectFB 1.7.7 release, an optimisation was added
  6. to CoreGraphicsStateClient_Init() to avoid creating an extended
  7. Graphics State object if it will not later be required:
  8. 4d422fb Client: Create extended Graphics State object when needed for later usage
  9. Unfortunately the client->gfx_state variable used to track the
  10. extended Graphics State object is not initialised, which can lead to
  11. crashes etc due to creation of the Graphics State object erroneously
  12. being skipped.
  13. Upstream-Status: Pending
  14. Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
  15. Signed-off-by: Philippe Reynes <philippe.reynes@sagemcom.com>
  16. ---
  17. src/core/CoreGraphicsStateClient.cpp | 1 +
  18. 1 file changed, 1 insertion(+)
  19. diff --git a/src/core/CoreGraphicsStateClient.cpp b/src/core/CoreGraphicsStateClient.cpp
  20. index 5d46f0e..5007755 100644
  21. --- a/src/core/CoreGraphicsStateClient.cpp
  22. +++ b/src/core/CoreGraphicsStateClient.cpp
  23. @@ -364,6 +364,7 @@ CoreGraphicsStateClient_Init( CoreGraphicsStateClient *client,
  24. client->renderer = NULL;
  25. client->requestor = NULL;
  26. client->throttle = NULL;
  27. + client->gfx_state = NULL;
  28. if (dfb_config->task_manager) {
  29. if (dfb_config->call_nodirect) {
  30. --
  31. 1.9.1