diff options
author | Eric Anholt <[email protected]> | 2009-07-01 17:08:16 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-07-02 14:07:09 -0700 |
commit | cb4ef34214d61fb48bdff689a85ea107060e061b (patch) | |
tree | b8990d381ab57de3cfe594af6181f4e49fb7f20f /src/mesa/drivers/dri/intel | |
parent | d1c8a0a30860ab6cd4a50582972fb185766595bd (diff) |
intel: Init num_fences to clean up valgrind warning.
Valgrind doesn't know that a successful getparam sets the target of the
pointer, so just set the value beforehand.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 5b3fa9ead32..8b3761c6bf2 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -598,7 +598,7 @@ intel_init_bufmgr(intelScreenPrivate *intelScreen) GLboolean gem_supported; struct drm_i915_getparam gp; __DRIscreenPrivate *spriv = intelScreen->driScrnPriv; - int num_fences; + int num_fences = 0; intelScreen->no_hw = getenv("INTEL_NO_HW") != NULL; |