projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa: refactor: move glReadPixels code into new readpix.c file
[mesa.git]
/
src
/
mesa
/
main
/
light.c
diff --git
a/src/mesa/main/light.c
b/src/mesa/main/light.c
index 0af647e13c04bf0584b8295c625a0518ebbfd6e3..f37d1f216fc94796212de3ea1d1f2375903727ca 100644
(file)
--- a/
src/mesa/main/light.c
+++ b/
src/mesa/main/light.c
@@
-1119,7
+1119,7
@@
compute_light_positions( GLcontext *ctx )
}
else {
/* positional light w/ homogeneous coordinate, divide by W */
}
else {
/* positional light w/ homogeneous coordinate, divide by W */
- GLfloat wInv = 1.0 / light->_Position[3];
+ GLfloat wInv =
(GLfloat)
1.0 / light->_Position[3];
light->_Position[0] *= wInv;
light->_Position[1] *= wInv;
light->_Position[2] *= wInv;
light->_Position[0] *= wInv;
light->_Position[1] *= wInv;
light->_Position[2] *= wInv;
@@
-1357,7
+1357,7
@@
_mesa_init_lighting( GLcontext *ctx )
/* Miscellaneous */
ctx->Light._NeedEyeCoords = GL_FALSE;
ctx->_NeedEyeCoords = GL_FALSE;
/* Miscellaneous */
ctx->Light._NeedEyeCoords = GL_FALSE;
ctx->_NeedEyeCoords = GL_FALSE;
- ctx->_ForceEyeCoords = GL_
TRU
E;
+ ctx->_ForceEyeCoords = GL_
FALS
E;
ctx->_ModelViewInvScale = 1.0;
}
ctx->_ModelViewInvScale = 1.0;
}