From 5eb5039d38d1f6c3cc522138b3e9f4dd31066e79 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 20 Jan 2017 15:07:04 -0500 Subject: [PATCH] more stderr messages when gl3w fails to load --- src/gui/Window.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gui/Window.cc b/src/gui/Window.cc index 52235bd..0a6a548 100644 --- a/src/gui/Window.cc +++ b/src/gui/Window.cc @@ -53,12 +53,22 @@ static bool Initialize_OpenGL() { if (gl3wInit() != 0) { + std::cerr << "Failed to initialize gl3w." << std::endl; + /* Failed to gl3wInit() */ return false; } if (!gl3wIsSupported(3, 0)) { + std::cerr << "Error: OpenGL 3.0 is required." << std::endl; + + std::cerr << "OpenGL version: " + << glGetString(GL_VERSION) + << ", GLSL: " + << glGetString(GL_SHADING_LANGUAGE_VERSION) + << std::endl; + /* OpenGL 3.0 is not supported */ return false; }