test/testshader.c
changeset 7191 75360622e65f
parent 6256 1d905b13b102
child 7323 590e596a8efc
     1.1 --- a/test/testshader.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/test/testshader.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -119,7 +119,7 @@
     1.4  "}"
     1.5      },
     1.6  };
     1.7 -    
     1.8 +
     1.9  static PFNGLATTACHOBJECTARBPROC glAttachObjectARB;
    1.10  static PFNGLCOMPILESHADERARBPROC glCompileShaderARB;
    1.11  static PFNGLCREATEPROGRAMOBJECTARBPROC glCreateProgramObjectARB;
    1.12 @@ -195,7 +195,7 @@
    1.13          }
    1.14      }
    1.15      glUseProgramObjectARB(0);
    1.16 - 
    1.17 +
    1.18      return (glGetError() == GL_NO_ERROR);
    1.19  }
    1.20  
    1.21 @@ -382,7 +382,7 @@
    1.22      glLoadIdentity();                // Reset The View
    1.23  
    1.24      glTranslatef(-1.5f,0.0f,0.0f);        // Move Left 1.5 Units
    1.25 -    
    1.26 +
    1.27      // draw a triangle (in smooth coloring mode)
    1.28      glBegin(GL_POLYGON);                // start drawing a polygon
    1.29      glColor3f(1.0f,0.0f,0.0f);            // Set The Color To Red
    1.30 @@ -390,8 +390,8 @@
    1.31      glColor3f(0.0f,1.0f,0.0f);            // Set The Color To Green
    1.32      glVertex3f( 1.0f,-1.0f, 0.0f);        // Bottom Right
    1.33      glColor3f(0.0f,0.0f,1.0f);            // Set The Color To Blue
    1.34 -    glVertex3f(-1.0f,-1.0f, 0.0f);        // Bottom Left    
    1.35 -    glEnd();                    // we're done with the polygon (smooth color interpolation)    
    1.36 +    glVertex3f(-1.0f,-1.0f, 0.0f);        // Bottom Left
    1.37 +    glEnd();                    // we're done with the polygon (smooth color interpolation)
    1.38  
    1.39      glTranslatef(3.0f,0.0f,0.0f);         // Move Right 3 Units
    1.40  
    1.41 @@ -416,7 +416,7 @@
    1.42      glTexCoord2f(texcoord[MAXX], texcoord[MAXY]);
    1.43      glVertex3f( 1.0f,-1.0f, 0.0f);        // Bottom Right
    1.44      glTexCoord2f(texcoord[MINX], texcoord[MAXY]);
    1.45 -    glVertex3f(-1.0f,-1.0f, 0.0f);        // Bottom Left    
    1.46 +    glVertex3f(-1.0f,-1.0f, 0.0f);        // Bottom Left
    1.47      glEnd();                    // done with the polygon
    1.48  
    1.49      if (shaders_supported) {
    1.50 @@ -428,8 +428,8 @@
    1.51      SDL_GL_SwapBuffers();
    1.52  }
    1.53  
    1.54 -int main(int argc, char **argv) 
    1.55 -{    
    1.56 +int main(int argc, char **argv)
    1.57 +{
    1.58      int done;
    1.59      SDL_Surface *surface;
    1.60      GLuint texture;