glamor-gles2: Fixup the pixmap before read back if it is not readable.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-01-29 14:14:36 +08:00 • committed by Eric Anholt
commit 566cca59e1
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ _glamor_get_spans(DrawablePtr drawable,
glamor_validate_pixmap(pixmap);
if (glamor_priv->gl_flavor == GLAMOR_GL_ES2
&& (glamor_tex_format_is_readable(format) || !no_revert)) {
&& (!glamor_tex_format_is_readable(format) || !no_revert)) {
/* XXX prepare whole pixmap is not efficient. */
temp_pixmap =