[PATCH] glamor: Move up glamor_priv->flags assignment in glamor_init()

Michel Dänzer michel at daenzer.net
Sun Mar 16 21:16:48 PDT 2014


From: Michel Dänzer <michel.daenzer at amd.com>

It wasn't assigned yet when it was tested for GLAMOR_NO_DRI3.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 glamor/glamor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glamor/glamor.c b/glamor/glamor.c
index 112acc6..d0abc8d 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -311,6 +311,7 @@ glamor_init(ScreenPtr screen, unsigned int flags)
     if (glamor_priv == NULL)
         return FALSE;
 
+    glamor_priv->flags = flags;
     if (flags & GLAMOR_INVERTED_Y_AXIS) {
         glamor_priv->yInverted = TRUE;
     }
@@ -485,7 +486,6 @@ glamor_init(ScreenPtr screen, unsigned int flags)
     glamor_pixmap_init(screen);
     glamor_glyphs_init(screen);
 
-    glamor_priv->flags = flags;
     glamor_priv->screen = screen;
 
     return TRUE;
-- 
1.9.0



More information about the xorg-devel mailing list