diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-07 18:51:44 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-07 18:51:44 -0600 |
commit | 5b5c9315275752add1215dba0f86d5f5068d856b (patch) | |
tree | 90dec078e7417a98ae9be307ee5fb8f6a3705bff /src/mesa/main/mtypes.h | |
parent | 12a317b93a635a623a8d0b9d0cb200ba8b3ae98b (diff) |
fix refcounting bugs in tnl/tex program caches
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 98fab69fd8..001240a14f 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1544,19 +1544,17 @@ struct gl_texture_unit /*@}*/ }; -struct texenvprog_cache_item { - GLuint hash; - void *key; - struct gl_fragment_program *data; - struct texenvprog_cache_item *next; -}; -struct texenvprog_cache { +struct texenvprog_cache_item; + +struct texenvprog_cache +{ struct texenvprog_cache_item **items; GLuint size, n_items; GLcontext *ctx; }; + /** * Texture attribute group (GL_TEXTURE_BIT). */ |