Kenneth Graunke <[email protected]> writes:
> @@ -2185,7 +2185,8 @@ fs_visitor::fs_visitor(struct brw_wm_compile *c, struct 
> gl_shader_program *prog,
>     this->intel = &brw->intel;
>     this->ctx = &intel->ctx;
>     this->mem_ctx = ralloc_context(NULL);
> -   this->shader = shader;
> +   this->shader = prog == NULL ? NULL :
> +      (struct brw_shader *) prog->_LinkedShaders[MESA_SHADER_FRAGMENT];

Could I get a proper if statement here?

Attachment: pgpqO9AKCZUvM.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to