mirror of
https://github.com/overte-org/overte.git
synced 2025-06-15 20:59:17 +02:00
Merge pull request #1784 from birarda/audio-render-crash
fix audio render crash when audio output setup failed
This commit is contained in:
commit
fd698d7aba
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ void Audio::toggleMute() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Audio::render(int screenWidth, int screenHeight) {
|
void Audio::render(int screenWidth, int screenHeight) {
|
||||||
if (_audioInput) {
|
if (_audioInput && _audioOutput) {
|
||||||
glLineWidth(2.0);
|
glLineWidth(2.0);
|
||||||
glBegin(GL_LINES);
|
glBegin(GL_LINES);
|
||||||
glColor3f(.93f, .93f, .93f);
|
glColor3f(.93f, .93f, .93f);
|
||||||
|
|
Loading…
Reference in a new issue