diff options
author | Brian <[email protected]> | 2007-01-23 16:37:51 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-01-23 16:37:51 -0700 |
commit | 223d7cb3c785ad58c869a3ee0fbf2f1d42c3310d (patch) | |
tree | 85ae41eea6ed9b915e14603fc19ce2ef53765bb8 /src/mesa/main | |
parent | bc5d480e2ca83855a343f1ad979e05f0ee59d2fb (diff) |
fix g++ warnings/errors
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index 3cb2adbde2e..b69e6501595 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -1187,13 +1187,14 @@ static void cache_item( struct texenvprog_cache *cache, const struct state_key *key, void *data ) { - struct texenvprog_cache_item *c = MALLOC(sizeof(*c)); + struct texenvprog_cache_item *c + = (struct texenvprog_cache_item *) MALLOC(sizeof(*c)); c->hash = hash; c->key = _mesa_malloc(sizeof(*key)); memcpy(c->key, key, sizeof(*key)); - c->data = data; + c->data = (struct gl_fragment_program *) data; if (cache->n_items > cache->size * 1.5) { if (cache->size < 1000) |