3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 17:55:29 +02:00

Merge pull request from birarda/audio-render-crash

fix audio render crash when audio output setup failed
This commit is contained in:
AndrewMeadows 2014-01-31 10:45:31 -08:00
commit fd698d7aba

View file

@ -539,7 +539,7 @@ void Audio::toggleMute() {
}
void Audio::render(int screenWidth, int screenHeight) {
if (_audioInput) {
if (_audioInput && _audioOutput) {
glLineWidth(2.0);
glBegin(GL_LINES);
glColor3f(.93f, .93f, .93f);