shithub: cstory

Download patch

ref: 9a990d6fa79ed002f95a7d7c3177cc62d84fb50d
parent: 5c1012aa8e72d1b51ae8bdfc29691dc9ff37a736
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Sep 19 11:07:44 EDT 2020

Correct some code indentation

--- a/src/Backends/Rendering/Window/OpenGL3/GLFW3.cpp
+++ b/src/Backends/Rendering/Window/OpenGL3/GLFW3.cpp
@@ -47,28 +47,28 @@
 	{
 		glfwMakeContextCurrent(window);
 
-			#ifndef USE_OPENGLES2
-				if (gladLoadGLLoader((GLADloadproc)glfwGetProcAddress))
-				{
-					// Check if the platform supports OpenGL 3.2
-					if (GLAD_GL_VERSION_3_2)
-					{
-			#endif
-						Backend_PostWindowCreation();
+	#ifndef USE_OPENGLES2
+		if (gladLoadGLLoader((GLADloadproc)glfwGetProcAddress))
+		{
+			// Check if the platform supports OpenGL 3.2
+			if (GLAD_GL_VERSION_3_2)
+			{
+	#endif
+				Backend_PostWindowCreation();
 
-						return true;
-			#ifndef USE_OPENGLES2
-					}
-					else
-					{
-						Backend_ShowMessageBox("Fatal error (OpenGL rendering backend)", "Your system does not support OpenGL 3.2");
-					}
-				}
-				else
-				{
-					Backend_ShowMessageBox("Fatal error (OpenGL rendering backend)", "Could not initialize OpenGL context");
-				}
-			#endif
+				return true;
+	#ifndef USE_OPENGLES2
+			}
+			else
+			{
+				Backend_ShowMessageBox("Fatal error (OpenGL rendering backend)", "Your system does not support OpenGL 3.2");
+			}
+		}
+		else
+		{
+			Backend_ShowMessageBox("Fatal error (OpenGL rendering backend)", "Could not initialize OpenGL context");
+		}
+	#endif
 
 		glfwDestroyWindow(window);
 	}