devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a20a12bfbced826e2fe8699246c3775324527cd0

commit a20a12bfbced826e2fe8699246c3775324527cd0
Author: Chris Michael <[email protected]>
Date:   Wed Jul 9 11:38:06 2014 -0400

    evas-engine-drm: Fix evas drm engine bufer depth
    
    Seems the new software_generic backend is passing in
    OUTBUF_DEPTH_INHERIT during a reconfigure, so let's add a check for
    that else if not, the entire drm engine stops rendering due to output
    buffers not being created to match the framebuffer depth.
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/drm/evas_outbuf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index 9873b75..f9e68b4 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -157,6 +157,9 @@ evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, 
Outbuf_Depth depth)
 {
    int i = 0;
 
+   /* check if we are inheriting the old buffer depth */
+   if (depth == OUTBUF_DEPTH_INHERIT) depth = ob->depth;
+
    /* check for changes */
    if ((ob->w == w) && (ob->h == h) &&
        (ob->destination_alpha == ob->info->info.destination_alpha) &&

-- 


Reply via email to