summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-03-14 10:23:11 -0600
committerBrian <brian.paul@tungstengraphics.com>2008-03-14 10:23:56 -0600
commit027433176cddec58821d625fb2df45cfd95f1e33 (patch)
tree8186947608e17c79a92537b2cdffd01fcf4373ab /src/gallium
parenta254d0c36870724e51e91de3a3da9220b67af850 (diff)
i915: check for NULL const buffer ptr
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i915simple/i915_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915simple/i915_state.c b/src/gallium/drivers/i915simple/i915_state.c
index 503c092400..1cec36e206 100644
--- a/src/gallium/drivers/i915simple/i915_state.c
+++ b/src/gallium/drivers/i915simple/i915_state.c
@@ -516,7 +516,7 @@ static void i915_set_constant_buffer(struct pipe_context *pipe,
* stays the same. In that case we should only be updating the first
* N constants, leaving any extras from shader translation alone.
*/
- {
+ if (buf) {
void *mapped;
if (buf->size &&
(mapped = ws->buffer_map(ws, buf->buffer,