diff options
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index a8c2ea3d90a..9cb03b38c01 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -221,7 +221,8 @@ _swrast_update_deferred_texture(struct gl_context *ctx) else { GLboolean use_fprog = _swrast_use_fragment_program(ctx); const struct gl_program *fprog = ctx->FragmentProgram._Current; - if (use_fprog && (fprog->OutputsWritten & (1 << FRAG_RESULT_DEPTH))) { + if (use_fprog && + (fprog->info.outputs_written & (1 << FRAG_RESULT_DEPTH))) { /* Z comes from fragment program/shader */ swrast->_DeferredTexture = GL_FALSE; } |