Fix segfault in nouveauCalcViewport
authorBen Skeggs <darktama@iinet.net.au>
Mon, 13 Nov 2006 16:01:03 +0000 (16:01 +0000)
committerBen Skeggs <darktama@iinet.net.au>
Mon, 13 Nov 2006 16:01:03 +0000 (16:01 +0000)
src/mesa/drivers/dri/nouveau/nouveau_context.c

index f815ace31ced24cf73c1f1928a7273c1c1a9884a..34a65d6d4b76d8011616a16e1a7cfb0beca53091 100644 (file)
@@ -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: