A recent change to arbprogparse.c on Apr 28 is causing references to vertex
attrib zero to crash. I'm not entirely sure on how it is supposed to be
handled now, but my guess from trial and error is found below. Someone please
take a look.
Changes:
Be more strict on the vertex attrib array bounds and use an absolute zero for
vertex attrib zero.
--- mesa2/src/mesa/shader/arbprogparse.c 2006-05-09 12:02:52.000000000
-0700
+++ mesa/src/mesa/shader/arbprogparse.c 2006-05-28 17:40:02.000000000 -0700
@@ -1538,12 +1538,20 @@ parse_attrib_binding(GLcontext * ctx, GL
GLuint attrib;
if (!parse_generic_attrib_num(ctx, inst, Program, &attrib)) {
*is_generic = 1;
+ if (attrib >= MAX_VERTEX_PROGRAM_ATTRIBS) {
+ const char *msg = "Invalid generic vertex attribute
reference";
+ _mesa_set_program_error (ctx, Program->Position, msg);
+ _mesa_error (ctx, GL_INVALID_OPERATION, msg);
+ return 1;
+ }
/* Add VERT_ATTRIB_GENERIC0 here because ARB_vertex_program's
* attributes do not alias the conventional vertex
* attributes.
*/
if (attrib > 0)
*inputReg = attrib + VERT_ATTRIB_GENERIC0;
+ else
+ *inputReg = 0;
}
}
break;
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev