From 7c276329e815c84ea2403bb08c44ff60179c0cd6 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 14 Sep 2001 21:36:43 +0000 Subject: more warning fixes (Karl Schultz) --- src/mesa/main/light.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/light.h') diff --git a/src/mesa/main/light.h b/src/mesa/main/light.h index 79fad5a98a..5cd24e83ff 100644 --- a/src/mesa/main/light.h +++ b/src/mesa/main/light.h @@ -1,4 +1,4 @@ -/* $Id: light.h,v 1.13 2001/04/28 08:39:17 keithw Exp $ */ +/* $Id: light.h,v 1.14 2001/09/14 21:36:43 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -78,6 +78,7 @@ _mesa_GetMaterialiv( GLenum face, GLenum pname, GLint *params ); /* Lerp between adjacent values in the f(x) lookup table, giving a * continuous function, with adequeate overall accuracy. (Though * still pretty good compared to a straight lookup). + * Result should be a GLfloat. */ #define GET_SHINE_TAB_ENTRY( table, dp, result ) \ do { \ @@ -85,7 +86,7 @@ do { \ float f = (dp * (SHINE_TABLE_SIZE-1)); \ int k = (int) f; \ if (k > SHINE_TABLE_SIZE-2) \ - result = pow( dp, _tab->shininess ); \ + result = (GLfloat) pow( dp, _tab->shininess ); \ else \ result = _tab->tab[k] + (f-k)*(_tab->tab[k+1]-_tab->tab[k]); \ } while (0) -- cgit v1.2.3