diff options
author | Ian Romanick <[email protected]> | 2012-09-26 11:08:11 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-10-24 11:41:07 -0700 |
commit | 9afcb18146c457a789266eafa8596c96445d7c5e (patch) | |
tree | a43a2d55a7523fbea48a958f1521cc2f5aacb13c /src/mesa/main/state.c | |
parent | 1c4b61e0c226e57533e0f7362cffde0e05cc89f4 (diff) |
dri_util: Use calloc to allocate __DRIcontext
The __DRIcontext contains some pointers, and some drivers check for them to be
NULL in some failure paths. Instead of sprinkling NULL assignments across the
various drivers, just zero out the whole thing.
NOTE: This is a candidate for the 9.0 branch.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-and-tested-by: Kenneth Graunke <[email protected]>
Tested-by: Lu Hua <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53618
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54301
(cherry picked from commit f93cb0bebb10e3e3e5df099be51021b211650356)
Diffstat (limited to 'src/mesa/main/state.c')
0 files changed, 0 insertions, 0 deletions