mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 17:55:29 +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) {
|
||||
if (_audioInput) {
|
||||
if (_audioInput && _audioOutput) {
|
||||
glLineWidth(2.0);
|
||||
glBegin(GL_LINES);
|
||||
glColor3f(.93f, .93f, .93f);
|
||||
|
|
Loading…
Reference in a new issue