diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-17 13:31:14 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-17 13:31:14 +1000 |
commit | 5e075fb80968744c72dfaba062e0b591ac69fad0 (patch) | |
tree | 528b2c949044112d9af2054088b08c547ae19665 | |
parent | ba50c3fed38283968f622d7f47437f56033f09b7 (diff) |
r500: set fragprog end to correct place
-rw-r--r-- | src/mesa/drivers/dri/r300/r500_fragprog.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c index 4020edd6c8..a986947e9d 100644 --- a/src/mesa/drivers/dri/r300/r500_fragprog.c +++ b/src/mesa/drivers/dri/r300/r500_fragprog.c @@ -798,14 +798,15 @@ void r500TranslateFragmentShader(r300ContextPtr r300, init_program(r300, fp); cs = fp->cs; - fp->inst_offset = 0; - fp->inst_end = cs->nrslots - 1; - if (parse_program(fp) == GL_FALSE) { ERROR("Huh. Couldn't parse program. There should be additional errors explaining why.\nUsing dumb shader...\n"); dumb_shader(fp); + fp->inst_offset = 0; + fp->inst_end = cs->nrslots - 1; return; } + fp->inst_offset = 0; + fp->inst_end = cs->nrslots - 1; fp->translated = GL_TRUE; r300UpdateStateParameters(fp->ctx, _NEW_PROGRAM); |