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".
This commit is contained in:
Brian Paul
2006-08-28 19:42:41 +00:00
parent 258751f4a0
commit b5a2fc1255
2 changed files with 2 additions and 2 deletions

View File

@@ -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 &

View File

@@ -399,7 +399,7 @@ void r300_translate_vertex_shader(struct r300_vertex_program *vp)
int u_temp_i=VSF_MAX_FRAGMENT_TEMPS-1;
struct prog_src_register src[3];
if (!mesa_vp->Base.String)
if (mesa_vp->Base.NumInstructions == 0)
return;
if (getenv("R300_VP_SAFETY")) {