[gnome-shell] st-private: fix cogl orthographic projection matrix



commit 5bdaffd36ef33b4585719cf616a214f4770b5e62
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Feb 23 16:40:06 2015 -0800

    st-private: fix cogl orthographic projection matrix
    
    Commit 1c1f63a7d7a5f0be5a796679d029a6b0c600b838 changed the shadow
    pipeline to use cogl_framebuffer_ortographic() instead of cogl_ortho(),
    but the two functions take their arguments in a different order.
    
    Fixes graphical corruption for text shadows in the login screen.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745061

 src/st/st-private.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-private.c b/src/st/st-private.c
index c928e6a..f48e1a5 100644
--- a/src/st/st-private.c
+++ b/src/st/st-private.c
@@ -459,7 +459,7 @@ _st_create_shadow_pipeline_from_actor (StShadow     *shadow_spec,
 
       cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR, &clear_color);
       cogl_framebuffer_translate (fb, -box.x1, -box.y1, 0);
-      cogl_framebuffer_orthographic (fb, 0, width, height, 0, 0, 1.0);
+      cogl_framebuffer_orthographic (fb, 0, 0, width, height, 0, 1.0);
 
       clutter_actor_set_opacity_override (actor, 255);
       clutter_actor_paint (actor);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]