mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
glamor: Move up glamor_priv->flags assignment in glamor_init()
It wasn't assigned yet when it was tested for GLAMOR_NO_DRI3. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
b5a61239e2
commit
6649d0059e
1 changed files with 1 additions and 1 deletions
|
|
@ -313,6 +313,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;
|
||||
}
|
||||
|
|
@ -487,7 +488,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue