projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0fcc4
)
check for NULL ptr in _mesa_print_parameter_list()
author
Brian
<brian.paul@tungstengraphics.com>
Tue, 30 Oct 2007 17:14:33 +0000
(11:14 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 30 Oct 2007 17:32:53 +0000
(11:32 -0600)
src/mesa/shader/prog_print.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_print.c
b/src/mesa/shader/prog_print.c
index c421b1228bcfa8819aa81bb886a679f0b458549e..f410a9099e27c6b7aa3c53fd4ee6567fd54937c5 100644
(file)
--- a/
src/mesa/shader/prog_print.c
+++ b/
src/mesa/shader/prog_print.c
@@
-753,6
+753,9
@@
_mesa_print_parameter_list(const struct gl_program_parameter_list *list)
const gl_prog_print_mode mode = PROG_PRINT_DEBUG;
GLuint i;
+ if (!list)
+ return;
+
_mesa_printf("param list %p\n", (void *) list);
for (i = 0; i < list->NumParameters; i++){
struct gl_program_parameter *param = list->Parameters + i;