xephyr: Don't forget to glViewport() before drawing the screen.
authorEric Anholt <eric@anholt.net>
Fri, 28 Feb 2014 01:55:50 +0000 (17:55 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 17 Mar 2014 21:30:28 +0000 (14:30 -0700)
commitf31911ff8f3f3707101b7771d5dc994ed1ca5c70
tree49641ab40e5d79fb136760efd8399cf4d58f86cd
parent96a28e9c914d7ae9b269f73a27b99cbd3c465ac8
xephyr: Don't forget to glViewport() before drawing the screen.

Fixes misrendering with cairogears.  I had noticed the failure while
trying to figure out what was going on with traps.  Cairogears was
apparently putting its results on the screen through putimage, which
is a texture upload, so the last GL drawing was done to the size of
the cairogears window, not the size of the xephyr screen.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
hw/kdrive/ephyr/ephyr_glamor_glx.c
hw/kdrive/ephyr/ephyr_glamor_glx.h
hw/kdrive/ephyr/hostx.c