glamor_fill: Should restore alu to GXcopy.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-03-26 19:03:20 +08:00 committed by Eric Anholt
parent 1f4486c10b
commit 94186db527

View File

@ -206,6 +206,7 @@ glamor_solid(PixmapPtr pixmap, int x, int y, int width, int height,
dispatch->glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
dispatch->glDisableVertexAttribArray(GLAMOR_VERTEX_POS);
dispatch->glUseProgram(0);
glamor_set_alu(dispatch, GXcopy);
glamor_put_dispatch(glamor_priv);
return TRUE;
}