From: Ben Skeggs Date: Mon, 13 Nov 2006 16:01:03 +0000 (+0000) Subject: Fix segfault in nouveauCalcViewport X-Git-Tag: 062012170305~20010^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47695f06894ed28602ad9ec1449739e658498c82;p=profile%2Fivi%2Fmesa.git Fix segfault in nouveauCalcViewport --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c index f815ace..34a65d6 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -135,6 +135,8 @@ GLboolean nouveauCreateContext( const __GLcontextModes *glVisual, _tnl_CreateContext( ctx ); _swsetup_CreateContext( ctx ); + _math_matrix_ctr(&nmesa->viewport); + switch(nmesa->screen->card->type) { case NV_03: