diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2008-04-23 14:07:53 -0400 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-04-23 14:07:53 -0400 |
commit | 95f8f8863a80ce1e584160d4d085213a9bbaef12 (patch) | |
tree | 96adf740a47f7066f754b9624c1b376040f5d4ed /src/gallium/auxiliary/draw/draw_pt_emit.c | |
parent | 5fcd84ab39318a371253b1a7285bc657fb82efed (diff) |
Add translate cache to fetch_emit stage and add out of memory
checks to code creating the cache.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_emit.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_emit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c index c6d9537530..35707af8a8 100644 --- a/src/gallium/auxiliary/draw/draw_pt_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_emit.c @@ -185,6 +185,10 @@ struct pt_emit *draw_pt_emit_create( struct draw_context *draw ) emit->draw = draw; emit->cache = translate_cache_create(); + if (!emit->cache) { + FREE(emit); + return NULL; + } return emit; } |