From a0e948f3aaadf56ab206a6b3e597825f2085f6d1 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Wed, 19 Sep 2007 15:29:17 -0400 Subject: Fix a really stupid mistake that Michel hit. Return proper hash. --- src/mesa/pipe/cso_cache/cso_cache.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/pipe/cso_cache/cso_cache.c b/src/mesa/pipe/cso_cache/cso_cache.c index e87733c7ab..71f0d08726 100644 --- a/src/mesa/pipe/cso_cache/cso_cache.c +++ b/src/mesa/pipe/cso_cache/cso_cache.c @@ -74,16 +74,22 @@ static struct cso_hash *_cso_hash_for_type(struct cso_cache *sc, enum cso_cache_ switch(type) { case CSO_BLEND: hash = sc->blend_hash; + break; case CSO_SAMPLER: hash = sc->sampler_hash; + break; case CSO_DEPTH_STENCIL: hash = sc->depth_stencil_hash; + break; case CSO_RASTERIZER: hash = sc->rasterizer_hash; + break; case CSO_FRAGMENT_SHADER: hash = sc->fs_hash; + break; case CSO_VERTEX_SHADER: hash = sc->vs_hash; + break; } return hash; -- cgit v1.2.3