diff options
author | Marek Olšák <[email protected]> | 2010-04-11 10:15:12 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-04-11 19:29:30 +0200 |
commit | 69019afa67d66cf3e5d2b4d5b286bf2ac1bd87af (patch) | |
tree | 437d663675d9c2ef38488b95938e0eb007bb6cf9 /src/gallium/drivers/r300/r300_vs.c | |
parent | bd09fce27119548cb91cc2aa9ced6a7347aefc3a (diff) |
r300g: use a dummy replacement fragment shader if the shader compilation fails
Better than killing an application.
Diffstat (limited to 'src/gallium/drivers/r300/r300_vs.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_vs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c index d8900f73eb6..af5a4d7604b 100644 --- a/src/gallium/drivers/r300/r300_vs.c +++ b/src/gallium/drivers/r300/r300_vs.c @@ -318,7 +318,7 @@ boolean r300_vertex_shader_setup_wpos(struct r300_context* r300) return FALSE; } - if (r300->fs->inputs.wpos != ATTR_UNUSED) { + if (r300->fs->shader->inputs.wpos != ATTR_UNUSED) { /* Enable WPOS in VAP. */ if (!(vap_out->vap_vsm_vtx_assm & tex_fmt)) { vap_out->vap_vsm_vtx_assm |= tex_fmt; |