projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8640db
)
r300: Corrected an error in r300_vertprog.c.
author
Oliver McFadden
<z3ro.geek@gmail.com>
Wed, 9 May 2007 03:38:45 +0000
(
03:38
+0000)
committer
Oliver McFadden
<z3ro.geek@gmail.com>
Wed, 9 May 2007 03:38:45 +0000
(
03:38
+0000)
Cannot use _mesa_warning here because we don't have a context pointer; perhaps
R300 specific warning and error functions are needed.
src/mesa/drivers/dri/r300/r300_vertprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_vertprog.c
b/src/mesa/drivers/dri/r300/r300_vertprog.c
index 245ceb4d122510fa1dad43b6acd178f011c61a81..ddb4996ee028e1c357524832d0a9132ac2c68118 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_vertprog.c
+++ b/
src/mesa/drivers/dri/r300/r300_vertprog.c
@@
-255,7
+255,7
@@
static unsigned long t_src_index(struct r300_vertex_program *vp, struct prog_src
return vp->inputs[src->Index];
}else{
if (src->Index < 0) {
-
_mesa_warning (
"negative offsets for indirect addressing do not work.\n");
+
fprintf (stderr,
"negative offsets for indirect addressing do not work.\n");
return 0;
}
return src->Index;