devilhorns pushed a commit to branch master.
commit 021e76aa258d7852e6ef724a7053cb7be57ad693
Author: Chris Michael <[email protected]>
Date: Tue Apr 30 07:16:33 2013 +0100
Try to create the Outbuf during initial engine setup.
Signed-off-by: Chris Michael <[email protected]>
---
src/modules/evas/engines/drm/evas_engine.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/modules/evas/engines/drm/evas_engine.c
b/src/modules/evas/engines/drm/evas_engine.c
index 9bff302..5b3003c 100644
--- a/src/modules/evas/engines/drm/evas_engine.c
+++ b/src/modules/evas/engines/drm/evas_engine.c
@@ -56,6 +56,12 @@ _output_setup(int w, int h, unsigned int rotation, unsigned
int depth, Eina_Bool
if (re->ob) evas_outbuf_free(re->ob);
/* try to create new outbuf */
+ if (!(re->ob = evas_outbuf_setup(w, h, rotation, depth, alpha)))
+ {
+ if (re->tb) evas_common_tilebuf_free(re->tb);
+ free(re);
+ return NULL;
+ }
}
/* return the allocated render_engine structure */
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1