summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_clear.h
diff options
context:
space:
mode:
authornobled <nobled@dreamwidth.org>2010-08-15 03:59:15 +0000
committerMarek Olšák <maraeo@gmail.com>2010-08-16 04:59:58 +0200
commit1e2cd02eae9d27e48273f4a548dc51f4f838eb96 (patch)
treed4eeddad3da3a59519fec93c27405a3867407835 /src/gallium/auxiliary/util/u_clear.h
parentb0e1565b5f24c3f624745890170cce0700e620ff (diff)
r300g: Fix leaks in failed context creation
This changes r300_destroy_context() so it can be called on a partially-initialized context, and uses it when r300_create_context() hits a fatal error. This makes sure r300_create_context() doesn't leak memory or neglect to call r300_update_num_contexts() when it fails. Signed-off-by: Marek Olšák <maraeo@gmail.com>
Diffstat (limited to 'src/gallium/auxiliary/util/u_clear.h')
0 files changed, 0 insertions, 0 deletions