diff options
author | Brian Paul <[email protected]> | 2006-09-05 23:15:29 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-09-05 23:15:29 +0000 |
commit | 3a55750d4884dfaecde71d1584e69f46f14fce86 (patch) | |
tree | 67f58aa320df02ae6cc4b9d02b4af2cea70284bb | |
parent | 43cc1dc18f4eb992e70b10fa66d1befa3a3ca912 (diff) |
Hack for Warcraft (bug 8060): allow 'vertex.weight' to be referenced in
vertex program, even though it's not really supported. Results will be
undefined, but Warcraft doesn't actually use the attribute.
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 898be0f2006..6c6ec0736c5 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1491,8 +1491,13 @@ parse_attrib_binding(GLcontext * ctx, const GLubyte ** inst, GLint weight; err = parse_weight_num (ctx, inst, Program, &weight); *inputReg = VERT_ATTRIB_WEIGHT; +#if 1 + /* hack for Warcraft (see bug 8060) */ + _mesa_warning(ctx, "Application error: vertex program uses 'vertex.weight' but GL_ARB_vertex_blend not supported."); +#else program_error(ctx, Program->Position, "ARB_vertex_blend not supported"); +#endif } return 1; @@ -3784,6 +3789,11 @@ enable_parser_extensions(GLcontext *ctx, grammar id) && !enable_ext(ctx, id, "draw_buffers")) return GL_FALSE; +#if 1 + /* hack for Warcraft (see bug 8060) */ + enable_ext(ctx, id, "vertex_blend"); +#endif + return GL_TRUE; } |