diff options
author | Patrice Mandin <[email protected]> | 2007-02-20 23:17:09 +0100 |
---|---|---|
committer | Patrice Mandin <[email protected]> | 2007-02-20 23:17:09 +0100 |
commit | 440759c2cdfdd9a7fbc6500fca2afa519126c1a7 (patch) | |
tree | 80ec6c468f29b64e44249884f6d3c91d801a633b | |
parent | 79870d100f90555b520af342cf59496236ff8f20 (diff) |
nouveau: nv10: grr, ctx->DrawBuffer invalid?
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state.c b/src/mesa/drivers/dri/nouveau/nv10_state.c index e204eba6ba2..5f304ccab92 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state.c @@ -41,7 +41,7 @@ static void nv10ViewportScale(nouveauContextPtr nmesa) GLuint h = ctx->Viewport.Height; GLfloat max_depth = (ctx->Viewport.Near + ctx->Viewport.Far) * 0.5; - if (ctx->DrawBuffer) { +/* if (ctx->DrawBuffer) { switch (ctx->DrawBuffer->_DepthBuffer->DepthBits) { case 16: max_depth *= 32767.0; @@ -50,10 +50,10 @@ static void nv10ViewportScale(nouveauContextPtr nmesa) max_depth *= 16777215.0; break; } - } else { + } else {*/ /* Default to 24 bits range */ max_depth *= 16777215.0; - } +/* }*/ BEGIN_RING_CACHE(NvSub3D, NV10_TCL_PRIMITIVE_3D_VIEWPORT_SCALE_X, 4); OUT_RING_CACHEf ((((GLfloat) w) * 0.5) - 2048.0); |