projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4244736
)
Workaround problems with NWN. (Tilman Sauerbeck)
author
Aapo Tahkola
<aet@rasterburn.org>
Fri, 10 Feb 2006 17:26:44 +0000
(17:26 +0000)
committer
Aapo Tahkola
<aet@rasterburn.org>
Fri, 10 Feb 2006 17:26:44 +0000
(17:26 +0000)
src/mesa/drivers/dri/r300/r300_vertexprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_vertexprog.c
b/src/mesa/drivers/dri/r300/r300_vertexprog.c
index f45b8cf11ba8f0d49f4d266e2e636336b78f9580..aff5d793d2b2f6b9b0c09e9498aa1a0878cb8c6e 100644
(file)
--- 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);