diff options
author | Keith Whitwell <[email protected]> | 2008-10-03 16:46:48 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-10-03 16:50:26 +0100 |
commit | d63a36ef3a4dd9cef1273fac5949e587c42813b5 (patch) | |
tree | 09afeed5c3997a73e89528a6076330ac3a87197f /src/mesa/shader/prog_cache.h | |
parent | fa1b533012030cd67148b5bf1e018fd5e30c96f8 (diff) |
Mesa: short-circuit case when looking up the same program twice in cache
Diffstat (limited to 'src/mesa/shader/prog_cache.h')
-rw-r--r-- | src/mesa/shader/prog_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_cache.h b/src/mesa/shader/prog_cache.h index a8c91fba011..4e1ccac03ff 100644 --- a/src/mesa/shader/prog_cache.h +++ b/src/mesa/shader/prog_cache.h @@ -42,7 +42,7 @@ _mesa_delete_program_cache(GLcontext *ctx, struct gl_program_cache *pc); extern struct gl_program * -_mesa_search_program_cache(const struct gl_program_cache *cache, +_mesa_search_program_cache(struct gl_program_cache *cache, const void *key, GLuint keysize); extern void |