fixed modern GL not enabling
This commit is contained in:
parent
9ff1710082
commit
0ae33c3356
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user