summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2006-02-10 17:26:44 +0000
committerAapo Tahkola <aet@rasterburn.org>2006-02-10 17:26:44 +0000
commita73094cc6ac2653ac115eaaf4f7ef657683f8084 (patch)
treefd8ec9e4dbda7b2849f0c822f9b57fed322909b4 /src/mesa/drivers
parent42447365b200653ee0a509e2df29f242459157c2 (diff)
Workaround problems with NWN. (Tilman Sauerbeck)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/r300_vertexprog.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertexprog.c b/src/mesa/drivers/dri/r300/r300_vertexprog.c
index f45b8cf11b..aff5d793d2 100644
--- a/src/mesa/drivers/dri/r300/r300_vertexprog.c
+++ b/src/mesa/drivers/dri/r300/r300_vertexprog.c
@@ -108,8 +108,18 @@ int r300VertexProgUpdateParams(GLcontext *ctx, struct r300_vertex_program *vp, f
struct program_parameter_list *paramList;
_mesa_load_state_parameters(ctx, mesa_vp->Base.Parameters);
+ if (mesa_vp->Base.Parameters == NULL) {
+ static int once=0;
+
+ WARN_ONCE("mesa_vp->Base.Parameters NULL\n");
+
+ if (once == 0) {
+ _mesa_print_program(&vp->mesa_program.Base);
+ once++;
+ }
+ return 0;
+ }
- //debug_vp(ctx, mesa_vp);
if(mesa_vp->Base.Parameters->NumParameters * 4 > VSF_MAX_FRAGMENT_LENGTH){
fprintf(stderr, "%s:Params exhausted\n", __FUNCTION__);
exit(-1);