projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79870d1
)
nouveau: nv10: grr, ctx->DrawBuffer invalid?
author
Patrice Mandin
<pmandin@caramail.com>
Tue, 20 Feb 2007 22:17:09 +0000
(23:17 +0100)
committer
Patrice Mandin
<pmandin@caramail.com>
Tue, 20 Feb 2007 22:17:09 +0000
(23:17 +0100)
src/mesa/drivers/dri/nouveau/nv10_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/nouveau/nv10_state.c
b/src/mesa/drivers/dri/nouveau/nv10_state.c
index e204eba6ba2a02f8fc1f5731ea97778ec43dba36..5f304ccab9251db3530b1d583e757591684802ef 100644
(file)
--- 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);