summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_vs.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-04-11 10:15:12 +0200
committerMarek Olšák <maraeo@gmail.com>2010-04-11 19:29:30 +0200
commit69019afa67d66cf3e5d2b4d5b286bf2ac1bd87af (patch)
tree437d663675d9c2ef38488b95938e0eb007bb6cf9 /src/gallium/drivers/r300/r300_vs.c
parentbd09fce27119548cb91cc2aa9ced6a7347aefc3a (diff)
downloadexternal_mesa3d-69019afa67d66cf3e5d2b4d5b286bf2ac1bd87af.zip
external_mesa3d-69019afa67d66cf3e5d2b4d5b286bf2ac1bd87af.tar.gz
external_mesa3d-69019afa67d66cf3e5d2b4d5b286bf2ac1bd87af.tar.bz2
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.c2
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 d8900f7..af5a4d7 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;