mesa: Replace ctx->Shader.Current{Vertex,Fragment,Geometry}Program with an array.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_vs_state.c
index a712aee0a20081d5e98b8edcc69a8c8a7c5a2875..e493c3e325eaac198465055f70fc397f2a6bb16f 100644 (file)
@@ -60,7 +60,7 @@ brw_upload_vs_unit(struct brw_context *brw)
    /* Use ALT floating point mode for ARB vertex programs, because they
     * require 0^0 == 1.
     */
-   if (brw->ctx.Shader.CurrentVertexProgram == NULL)
+   if (brw->ctx.Shader.CurrentProgram[MESA_SHADER_VERTEX] == NULL)
       vs->thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754;
    else
       vs->thread1.floating_point_mode = BRW_FLOATING_POINT_IEEE_754;