Permalink
Browse files

Equalizer: handle initialization failures properly.

  • Loading branch information...
1 parent 9321ce8 commit c7aa104ddd38931c08e4a413e98d1f4c6f64aace @marlam marlam committed Dec 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/player_equalizer.cpp
View
@@ -395,7 +395,7 @@ class eq_config : public eq::Config
if (getCanvases().size() < 1)
{
msg::err("no canvas in Equalizer configuration");
- abort();
+ return false;
}
float canvas_w = getCanvases()[0]->getWall().getWidth();
float canvas_h = getCanvases()[0]->getWall().getHeight();
@@ -826,7 +826,7 @@ class eq_window : public eq::Window
"GL_VERSION_2_1 GL_EXT_framebuffer_object"))
{
msg::err("This OpenGL implementation does not support OpenGL 2.1 and framebuffer objects");
- abort();
+ return false;
}
// Disable some things that Equalizer seems to enable for some reason.

0 comments on commit c7aa104

Please sign in to comment.