diff options
author | Robert Ellison <[email protected]> | 2009-04-27 12:08:34 -0600 |
---|---|---|
committer | Robert Ellison <[email protected]> | 2009-04-27 12:11:24 -0600 |
commit | 359a58230e0644a39c1904a74bc25803dc6cab6f (patch) | |
tree | 062690203e99103d1ccfa5486590624ff992f651 /src/gallium/state_trackers/dri2/dri_screen.h | |
parent | 76b9da9e98bad4bf22fe6610394236203b620bd9 (diff) |
Avoid a segfault in shader compilation
If a shader reaches an out-of-memory condition while adding
a new function (reallocating the function list), a segfault
will occur during cleanup (because the num_functions field
is non-zero, but the functions pointer is NULL).
This fixes that segfault by zeroing out the num_functions
field if reallocation fails.
Diffstat (limited to 'src/gallium/state_trackers/dri2/dri_screen.h')
0 files changed, 0 insertions, 0 deletions