i915g: Check for geometry shader earlier in i915_set_constant_buffer.
authorVinson Lee <vlee@freedesktop.org>
Thu, 24 May 2012 05:36:47 +0000 (22:36 -0700)
committerVinson Lee <vlee@freedesktop.org>
Fri, 25 May 2012 01:50:07 +0000 (18:50 -0700)
commit35f302d97e5b6f5fc4964e70f7adae706c5b7162
treed8ccc5035154fa0a473d08fbb058f38dd807b4a0
parent5cf693266faebd1fc130709fd7e7b2452bbd156c
i915g: Check for geometry shader earlier in i915_set_constant_buffer.

Fix resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/i915/i915_state.c