summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <darktama@iinet.net.au>2006-11-13 16:01:03 +0000
committerBen Skeggs <darktama@iinet.net.au>2006-11-13 16:01:03 +0000
commit47695f06894ed28602ad9ec1449739e658498c82 (patch)
tree35627731302866d113275804b09629726c4bd952
parentd5d00cf8c93d607876f66ca87e82087497f47d4a (diff)
Fix segfault in nouveauCalcViewport
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c
index f815ace31c..34a65d6d4b 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: