diff options
author | Patrice Mandin <[email protected]> | 2007-08-25 17:46:53 +0200 |
---|---|---|
committer | Patrice Mandin <[email protected]> | 2007-08-25 17:46:53 +0200 |
commit | 24967c8646b496b0e6f2735374528fe93ac3e0a4 (patch) | |
tree | 7d09430219000a0b3df991ad7b8874e829b9ff07 /src/mesa/drivers/dri/nouveau | |
parent | 40ecc4a359fb587627fee44a13192a0c20b03b8e (diff) |
nouveau: nv10: also set modelview0 matrix to identity
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_state.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state.c b/src/mesa/drivers/dri/nouveau/nv10_state.c index d3331ac9702..79d567b25d7 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state.c @@ -869,7 +869,7 @@ static GLboolean nv10InitCard(nouveauContextPtr nmesa) OUT_RING (0x802); OUT_RING (2); - /* Projection matrix */ + /* Projection and modelview matrix */ memset(projection, 0, sizeof(projection)); projection[0*4+0] = 1.0; projection[1*4+1] = 1.0; @@ -882,6 +882,10 @@ static GLboolean nv10InitCard(nouveauContextPtr nmesa) for (i=0; i<16; i++) { OUT_RINGf (projection[i]); } + BEGIN_RING_SIZE(NvSub3D, NV10_TCL_PRIMITIVE_3D_MODELVIEW0_MATRIX(0), 16); + for (i=0; i<16; i++) { + OUT_RINGf (projection[i]); + } BEGIN_RING_SIZE(NvSub3D, NV10_TCL_PRIMITIVE_3D_DEPTH_RANGE_NEAR, 2); OUT_RINGf (0.0); OUT_RINGf (1.0); |