mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 18:50:10 +01:00
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:
parent
258751f4a0
commit
b5a2fc1255
2 changed files with 2 additions and 2 deletions
|
|
@ -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 &
|
||||
|
|
|
|||
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue