summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-02-16 16:44:40 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-02-16 16:44:40 +0000
commit64d6ddabaa99dfd376997421d686b39adc6fd4a3 (patch)
treea2b89e48d5a5199c0c19bece82aedb1bf133bea0 /progs
parent477363455d250bf7545f1cf89271025f9183dfb5 (diff)
downloadexternal_mesa3d-64d6ddabaa99dfd376997421d686b39adc6fd4a3.zip
external_mesa3d-64d6ddabaa99dfd376997421d686b39adc6fd4a3.tar.gz
external_mesa3d-64d6ddabaa99dfd376997421d686b39adc6fd4a3.tar.bz2
remove incorrect negation in fog coord computation
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/fogcoord.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/tests/fogcoord.c b/progs/tests/fogcoord.c
index e5a24d8..8935574 100644
--- a/progs/tests/fogcoord.c
+++ b/progs/tests/fogcoord.c
@@ -22,7 +22,8 @@ static void Display( void )
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
for (t = 0.0; t <= 1.0; t += 0.25) {
- GLfloat f = -(Near + t * (Far - Near));
+ GLfloat f = Near + t * (Far - Near);
+ printf("glFogCoord(%4.1f)\n", f);
glFogCoordfEXT(f);
glPushMatrix();
@@ -69,6 +70,8 @@ static void Key( unsigned char key, int x, int y )
static void Init( void )
{
+ printf("GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER));
+ printf("GL_VERSION = %s\n", (char *) glGetString(GL_VERSION));
/* setup lighting, etc */
if (!glutExtensionSupported("GL_EXT_fog_coord")) {
printf("Sorry, this program requires GL_EXT_fog_coord\n");