1
0
Fork 0

source/Platform/Unix/GLXContext.cpp: Whitespace fix.

This commit is contained in:
Henrik Hautakoski 2023-08-02 00:34:56 +02:00
parent 35a6b38d16
commit 1854c4cb51

View file

@ -103,11 +103,11 @@ bool GLXContext::createGLContext()
}; };
GLint ctx_attr[] = { GLint ctx_attr[] = {
GLX_CONTEXT_MAJOR_VERSION_ARB, 3, GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
GLX_CONTEXT_MINOR_VERSION_ARB, 2, GLX_CONTEXT_MINOR_VERSION_ARB, 2,
GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB, GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB,
None None
}; };
// Ensure glx extensions are loaded. // Ensure glx extensions are loaded.
if (!ensureExtensionsLoaded(disp, DefaultScreen(disp))) { if (!ensureExtensionsLoaded(disp, DefaultScreen(disp))) {
@ -121,7 +121,7 @@ bool GLXContext::createGLContext()
} }
// Setup GL settings. // Setup GL settings.
fbc = glXChooseFBConfig(disp, DefaultScreen(disp), (const int*) info->visual, &fbcount); fbc = glXChooseFBConfig(disp, DefaultScreen(disp), (const int*) info->visual, &fbcount);
if (fbc == NULL) { if (fbc == NULL) {
Log::warn("GLX: Could not find FB Config."); Log::warn("GLX: Could not find FB Config.");
return false; return false;
@ -134,7 +134,7 @@ bool GLXContext::createGLContext()
return false; return false;
} }
glXMakeCurrent(disp, m_win, m_ctx); glXMakeCurrent(disp, m_win, m_ctx);
// Load OpenGL // Load OpenGL
if (!loadGL()) { if (!loadGL()) {