i965: Make Gen4-5 and Gen8+ ALT checks use ctx->_Shader too.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_wm_state.c
index 12cbc72f41a123079de7ded86a2a331cd88efbc0..d2903c7cb45840dfd83e7e03ea21624d6cc2f4e8 100644 (file)
@@ -119,7 +119,7 @@ brw_upload_wm_unit(struct brw_context *brw)
     * rendering, CurrentProgram[MESA_SHADER_FRAGMENT] is used for this check
     * to differentiate between the GLSL and non-GLSL cases.
     */
-   if (ctx->Shader.CurrentProgram[MESA_SHADER_FRAGMENT] == NULL)
+   if (ctx->_Shader->CurrentProgram[MESA_SHADER_FRAGMENT] == NULL)
       wm->thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754;
    else
       wm->thread1.floating_point_mode = BRW_FLOATING_POINT_IEEE_754;