summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/polygon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c
index 814f7ec5faa..fd02e5a652d 100644
--- a/src/mesa/main/polygon.c
+++ b/src/mesa/main/polygon.c
@@ -166,6 +166,9 @@ _mesa_PolygonMode( GLenum face, GLenum mode )
_mesa_error( ctx, GL_INVALID_ENUM, "glPolygonMode(face)" );
return;
}
+
+ if (ctx->Driver.PolygonMode)
+ ctx->Driver.PolygonMode(ctx, face, mode);
}
#if _HAVE_FULL_GL