diff options
author | Nicolai Hähnle <[email protected]> | 2009-07-23 21:38:28 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2009-07-27 20:32:06 +0200 |
commit | 8bcb6ef786dc41049b56e6efeca0f5788cfefe5a (patch) | |
tree | f9ee8b1b20dd80390351e22b67989d2b0933596d /src/mesa/drivers/dri/r300/r300_vertprog.c | |
parent | c5cb9a337881229f1db462632fa1d64e2677f316 (diff) |
r300/compiler: Lay groundwork for better error handling
Signed-off-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_vertprog.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_vertprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertprog.c b/src/mesa/drivers/dri/r300/r300_vertprog.c index dfb2a9e3d85..91d9d8ae949 100644 --- a/src/mesa/drivers/dri/r300/r300_vertprog.c +++ b/src/mesa/drivers/dri/r300/r300_vertprog.c @@ -125,8 +125,8 @@ static struct r300_vertex_program *build_program(GLcontext *ctx, _mesa_insert_mvp_code(ctx, (struct gl_vertex_program *)compiler.program); } - if (!r3xx_compile_vertex_program(&compiler)) - vp->error = GL_TRUE; + r3xx_compile_vertex_program(&compiler); + vp->error = compiler.Base.Error; rc_destroy(&compiler.Base); |