From: Ben Skeggs Date: Mon, 13 Nov 2006 16:01:03 +0000 (+0000) Subject: Fix segfault in nouveauCalcViewport X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47695f06894ed28602ad9ec1449739e658498c82;p=mesa.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 f815ace31ce..34a65d6d4b7 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: