Contents of /trunk/openal/patches/openal-20060211-alc-context.patch
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 513 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 513 byte(s)
-import
1 | --- openal-0.0.8/src/alc/alc_context.c.ori 2006-09-29 12:36:33.000000000 -0400 |
2 | +++ openal-0.0.8/src/alc/alc_context.c 2006-09-29 12:38:05.000000000 -0400 |
3 | @@ -236,8 +236,12 @@ |
4 | /* someone unpaused us */ |
5 | ispaused = AL_FALSE; |
6 | |
7 | - _alcDeviceResume( cc->write_device ); |
8 | - _alcDeviceResume( cc->read_device ); |
9 | + if (cc->write_device) { |
10 | + _alcDeviceResume( cc->write_device ); |
11 | + } |
12 | + if (cc->read_device) { |
13 | + _alcDeviceResume( cc->read_device ); |
14 | + } |
15 | |
16 | _alcUnlockAllContexts(); |
17 | _alUnlockMixerPause(); |