diff --git a/phongentity.h b/phongentity.h index a6ca30c..29346d0 100644 --- a/phongentity.h +++ b/phongentity.h @@ -35,7 +35,7 @@ public: PhongEntity(Mesh* myMesh); ~PhongEntity(); - void draw(const glm::mat4 viewMatrix, const glm::mat4 projectionMatrix, Lights::Light* dirLight, Lights* pointLights); + void draw(const glm::mat4 viewMatrix, const glm::mat4 projectionMatrix, Lights::Light* dirLight, Lights* pointLights); void crappyDraw(const glm::mat4 viewMatrix, const glm::mat4 projectionMatrix, Lights::Light* dirLight, Lights* pointLights); void initGL(bool isDynamic = false); diff --git a/sparrowrenderer.cpp b/sparrowrenderer.cpp index ac80fa7..754d9c2 100644 --- a/sparrowrenderer.cpp +++ b/sparrowrenderer.cpp @@ -23,6 +23,8 @@ void SparrowRenderer::initGL(int width, int height) modernOpenglAvailable = false; fprintf(stderr, "Warning: modern OpenGL not supported!\nEnabling fallback crappy rendering mode\n"); } + else + modernOpenglAvailable = true; std::cout << "OpenGL version " << glGetString(GL_VERSION) << std::endl; std::cout << "GLSL version " << glGetString(GL_SHADING_LANGUAGE_VERSION) << std::endl;