Fix whitespace
This commit is contained in:
parent
26b73fc09d
commit
adf01b4706
@ -8,12 +8,12 @@ RenderManager::RenderManager(){}
|
||||
|
||||
bool RenderManager::Init (uint16_t width, uint16_t height, const char* title){
|
||||
if (!glfwInit()) {
|
||||
printf("[EE] failed to initialize GLFW.\n");
|
||||
return false;
|
||||
}
|
||||
printf("[EE] failed to initialize GLFW.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
if (gl3wInit()) {
|
||||
printf("[EE] failed to initialize OpenGL\n");
|
||||
return false;
|
||||
}
|
||||
if (gl3wInit()) {
|
||||
printf("[EE] failed to initialize OpenGL\n");
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user