From: Cooper Yuan Date: Mon, 22 Jun 2009 06:33:18 +0000 (+0800) Subject: Pass viewport id to r700SendViewportState function, otherwise the radom value may... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f6451042d6c6e69fe1ea4f87814ebf2f982b034;p=mesa.git Pass viewport id to r700SendViewportState function, otherwise the radom value may beyond R700_MAX_VIEWPORTS --- diff --git a/src/mesa/drivers/dri/r600/r700_render.c b/src/mesa/drivers/dri/r600/r700_render.c index 4693cfbd827..e46b21c85c1 100644 --- a/src/mesa/drivers/dri/r600/r700_render.c +++ b/src/mesa/drivers/dri/r600/r700_render.c @@ -296,7 +296,7 @@ static GLboolean r700RunRender(GLcontext * ctx, //r700SyncSurf(context); /* */ r700SendContextStates(context); - r700SendViewportState(context); + r700SendViewportState(context, 0); r700SendRenderTargetState(context, 0);