diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-28 19:42:41 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-28 19:42:41 +0000 |
commit | b5a2fc125516f46fade82a8c65527ffe77cab5c2 (patch) | |
tree | 185ebe5ad285239e05b6cf8ac9be26a4c70d5a96 /src/mesa/drivers/dri/r200 | |
parent | 258751f4a0ac505e66346d8e6ccaec7c5a585534 (diff) |
Check mesa_vp->Base.NumInstructions == 0 instead of mesa_vp->Base.String to
determine if we actually have a program. See "[r300] TCL fallback with Quake3".
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_vertprog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_vertprog.c b/src/mesa/drivers/dri/r200/r200_vertprog.c index 32d0d8eada..b0f13e5f0a 100644 --- a/src/mesa/drivers/dri/r200/r200_vertprog.c +++ b/src/mesa/drivers/dri/r200/r200_vertprog.c @@ -407,7 +407,7 @@ static GLboolean r200_translate_vertex_program(struct r200_vertex_program *vp) vp->native = GL_FALSE; - if (!mesa_vp->Base.String) + if (mesa_vp->Base.NumInstructions == 0) return GL_FALSE; if ((mesa_vp->Base.InputsRead & |