mesa: check FEATURE_point_size_array
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 28 Jun 2008 22:15:03 +0000 (16:15 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 28 Jun 2008 22:15:03 +0000 (16:15 -0600)
src/mesa/main/ffvertex_prog.c

index 2baae77..5f3def2 100644 (file)
@@ -265,8 +265,10 @@ static struct state_key *make_state_key( GLcontext *ctx )
    if (ctx->Point._Attenuated)
       key->point_attenuated = 1;
 
+#if FEATURE_point_size_array
    if (ctx->Array.ArrayObj->PointSize.Enabled)
       key->point_array = 1;
+#endif
 
    if (ctx->Texture._TexGenEnabled ||
        ctx->Texture._TexMatEnabled ||