Fix whitespace

This commit is contained in:
rexy712 2020-08-15 13:30:50 -07:00
parent 26b73fc09d
commit adf01b4706

View File

@ -8,12 +8,12 @@ RenderManager::RenderManager(){}
bool RenderManager::Init (uint16_t width, uint16_t height, const char* title){ bool RenderManager::Init (uint16_t width, uint16_t height, const char* title){
if (!glfwInit()) { if (!glfwInit()) {
printf("[EE] failed to initialize GLFW.\n"); printf("[EE] failed to initialize GLFW.\n");
return false; return false;
} }
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
auto window = glfwCreateWindow(width, height, title, nullptr, nullptr); auto window = glfwCreateWindow(width, height, title, nullptr, nullptr);
@ -23,11 +23,11 @@ bool RenderManager::Init (uint16_t width, uint16_t height, const char* title){
} }
glfwMakeContextCurrent(window); glfwMakeContextCurrent(window);
if (gl3wInit()) { if (gl3wInit()) {
printf("[EE] failed to initialize OpenGL\n"); printf("[EE] failed to initialize OpenGL\n");
return false; return false;
} }
printf("[DD] OpenGL %s, GLSL %s\n", glGetString(GL_VERSION), glGetString(GL_SHADING_LANGUAGE_VERSION)); printf("[DD] OpenGL %s, GLSL %s\n", glGetString(GL_VERSION), glGetString(GL_SHADING_LANGUAGE_VERSION));
return true; return true;
} }