print to stderr like supposed to
This commit is contained in:
parent
82f63bc13c
commit
3698d60162
@ -18,7 +18,7 @@ render_manager::render_manager() :
|
|||||||
|
|
||||||
render_manager::RENDERER_ERROR render_manager::init (int width, int height, const char* title){
|
render_manager::RENDERER_ERROR render_manager::init (int width, int height, const char* title){
|
||||||
if (!glfwInit()) {
|
if (!glfwInit()) {
|
||||||
fprintf(stdout, "[EE] failed to initialize GLFW.\n");
|
fprintf(stderr, "[EE] failed to initialize GLFW.\n");
|
||||||
return RENDERER_INIT_ERROR;
|
return RENDERER_INIT_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,13 +28,13 @@ render_manager::RENDERER_ERROR render_manager::init (int width, int height, cons
|
|||||||
|
|
||||||
m_main_window = glfwCreateWindow(width, height, title, nullptr, nullptr);
|
m_main_window = glfwCreateWindow(width, height, title, nullptr, nullptr);
|
||||||
if (!m_main_window) {
|
if (!m_main_window) {
|
||||||
fprintf (stdout, "[EE] Could not create window\n");
|
fprintf (stderr, "[EE] Could not create window\n");
|
||||||
return RENDERER_WINDOW_ERROR;
|
return RENDERER_WINDOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
glfwMakeContextCurrent(m_main_window);
|
glfwMakeContextCurrent(m_main_window);
|
||||||
if (gl3wInit()) {
|
if (gl3wInit()) {
|
||||||
fprintf(stdout, "[EE] failed to initialize OpenGL\n");
|
fprintf(stderr, "[EE] failed to initialize OpenGL\n");
|
||||||
return RENDERER_CONTEXT_ERROR;
|
return RENDERER_CONTEXT_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user