replace glNormal3f(v) with GL_CALL(Normal3f)(v), etc (Andreas Stenglein
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Sep 2004 14:49:33 +0000 (14:49 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Sep 2004 14:49:33 +0000 (14:49 +0000)
src/mesa/drivers/dri/ffb/ffb_vtxfmt.c

index 09cb99dc1f1261c038be400f63d890d6c71d8d71..279cda7b3716df94f34b4be71b32eed30c204af7 100644 (file)
@@ -161,13 +161,13 @@ static void choose_normals(void)
 static void ffb_choose_Normal3f(GLfloat x, GLfloat y, GLfloat z)
 {
        choose_normals();
-       glNormal3f(x, y, z);
+       GL_CALL(Normal3f)(x, y, z);
 }
 
 static void ffb_choose_Normal3fv(const GLfloat *v)
 {
        choose_normals();
-       glNormal3fv(v);
+       GL_CALL(Normal3fv)(v);
 }
 
 /* Vertex functions: */
@@ -267,13 +267,13 @@ static void ffb_do_fallback(GLcontext *ctx)
         * correctly:
         */
        if (fmesa->imm.prim != PRIM_OUTSIDE_BEGIN_END )
-               glBegin(fmesa->imm.prim);
+               GL_CALL(Begin)(fmesa->imm.prim);
 
        if (ctx->Light.Enabled) {
-               glColor4fv(ctx->Current.Color); /* Catch ColorMaterial */
-               glNormal3fv(current->normal);
+               GL_CALL(Color4fv)(ctx->Current.Color);  /* Catch ColorMaterial */
+               GL_CALL(Normal3fv)(current->normal);
        } else {
-               glColor4fv(current->color);
+               GL_CALL(Color4fv)(current->color);
        }
 }