i965: Make Gen4-5 and Gen8+ ALT checks use ctx->_Shader too.
[mesa.git] / src / mesa / drivers / dri / i965 / gen8_vs_state.c
index 00f27314ca9475d6242e7f7d02e565a81346d4aa..5a2021f8a29de38593b79299ace6f6309c76cf54 100644 (file)
@@ -42,7 +42,7 @@ upload_vs_state(struct brw_context *brw)
    /* Use ALT floating point mode for ARB vertex programs, because they
     * require 0^0 == 1.
     */
-   if (ctx->Shader.CurrentProgram[MESA_SHADER_VERTEX] == NULL)
+   if (ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX] == NULL)
       floating_point_mode = GEN6_VS_FLOATING_POINT_MODE_ALT;
 
    BEGIN_BATCH(9);