projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded05d3
)
i965: added null const_buffer pointer check in update_constant_buffer()
author
Brian Paul
<brianp@vmware.com>
Fri, 10 Apr 2009 14:36:04 +0000
(08:36 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 10 Apr 2009 14:36:19 +0000
(08:36 -0600)
src/mesa/drivers/dri/i965/brw_curbe.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_curbe.c
b/src/mesa/drivers/dri/i965/brw_curbe.c
index 08b602a5abee86116b4c6dd2621f36d2e3808e5c..94bf2c0d67a0f94edbb0521ea0df2e0dad16652b 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_curbe.c
+++ b/
src/mesa/drivers/dri/i965/brw_curbe.c
@@
-343,7
+343,7
@@
update_constant_buffer(struct brw_context *brw,
const int size = params->NumParameters * 4 * sizeof(GLfloat);
/* copy Mesa program constants into the buffer */
- if (size > 0) {
+ if (
const_buffer &&
size > 0) {
GLubyte *map;
assert(const_buffer);