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:
@@ -407,7 +407,7 @@ static GLboolean r200_translate_vertex_program(struct r200_vertex_program *vp)
|
|||||||
|
|
||||||
vp->native = GL_FALSE;
|
vp->native = GL_FALSE;
|
||||||
|
|
||||||
if (!mesa_vp->Base.String)
|
if (mesa_vp->Base.NumInstructions == 0)
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
|
||||||
if ((mesa_vp->Base.InputsRead &
|
if ((mesa_vp->Base.InputsRead &
|
||||||
|
@@ -399,7 +399,7 @@ void r300_translate_vertex_shader(struct r300_vertex_program *vp)
|
|||||||
int u_temp_i=VSF_MAX_FRAGMENT_TEMPS-1;
|
int u_temp_i=VSF_MAX_FRAGMENT_TEMPS-1;
|
||||||
struct prog_src_register src[3];
|
struct prog_src_register src[3];
|
||||||
|
|
||||||
if (!mesa_vp->Base.String)
|
if (mesa_vp->Base.NumInstructions == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (getenv("R300_VP_SAFETY")) {
|
if (getenv("R300_VP_SAFETY")) {
|
||||||
|
Reference in New Issue
Block a user