Skip to content

Commit

Permalink
Minor comment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LoganDooley committed Nov 2, 2022
1 parent 5b9437f commit 7f2a181
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/glrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ void GLRenderer::finish()

void GLRenderer::initializeGL()
{
// Initializes the GLEW library/provides access to OpenGL functions
glewExperimental = GL_TRUE;
GLenum err = glewInit();
if (GLEW_OK != err) fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
fprintf(stdout, "Using GLEW %s\n", glewGetString(GLEW_VERSION));
glViewport(0, 0, size().width(), size().height());

glViewport(0, 0, size().width(), size().height()); // Tells your computer the size of the screen it will draw to

// Task 4: Set the clear color here

Expand Down

0 comments on commit 7f2a181

Please sign in to comment.