Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rauch <Rauch.Christian@gmx.de>2021-06-23 00:05:47 +0300
committerChristian Rauch <Rauch.Christian@gmx.de>2021-06-23 00:05:47 +0300
commitabb07a38b842accd685dd6a065aa25b85e12a52d (patch)
tree5164973879b380aff32ade8c0da4c2d87177765f /intern/ghost
parentc88c331384bf1684d34935fc4196cc9e82afb5ce (diff)
GHOST/XR: fix code format
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_XrGraphicsBinding.cpp6
-rw-r--r--intern/ghost/intern/GHOST_Xr_openxr_includes.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/intern/ghost/intern/GHOST_XrGraphicsBinding.cpp b/intern/ghost/intern/GHOST_XrGraphicsBinding.cpp
index a4b605876fd..aeaa6e6b9e0 100644
--- a/intern/ghost/intern/GHOST_XrGraphicsBinding.cpp
+++ b/intern/ghost/intern/GHOST_XrGraphicsBinding.cpp
@@ -110,7 +110,7 @@ class GHOST_XrGraphicsBindingOpenGL : public GHOST_IXrGraphicsBinding {
void initFromGhostContext(GHOST_Context &ghost_ctx) override
{
#if defined(WITH_GHOST_X11)
-#if defined(WITH_GL_EGL)
+# if defined(WITH_GL_EGL)
GHOST_ContextEGL &ctx_egl = static_cast<GHOST_ContextEGL &>(ghost_ctx);
oxr_binding.egl.type = XR_TYPE_GRAPHICS_BINDING_EGL_MNDX;
@@ -118,7 +118,7 @@ class GHOST_XrGraphicsBindingOpenGL : public GHOST_IXrGraphicsBinding {
oxr_binding.egl.display = ctx_egl.getDisplay();
oxr_binding.egl.config = ctx_egl.getConfig();
oxr_binding.egl.context = ctx_egl.getContext();
-#else
+# else
GHOST_ContextGLX &ctx_glx = static_cast<GHOST_ContextGLX &>(ghost_ctx);
XVisualInfo *visual_info = glXGetVisualFromFBConfig(ctx_glx.m_display, ctx_glx.m_fbconfig);
@@ -130,7 +130,7 @@ class GHOST_XrGraphicsBindingOpenGL : public GHOST_IXrGraphicsBinding {
oxr_binding.glx.visualid = visual_info->visualid;
XFree(visual_info);
-#endif
+# endif
#elif defined(WIN32)
GHOST_ContextWGL &ctx_wgl = static_cast<GHOST_ContextWGL &>(ghost_ctx);
diff --git a/intern/ghost/intern/GHOST_Xr_openxr_includes.h b/intern/ghost/intern/GHOST_Xr_openxr_includes.h
index 72e38097a97..d6d7cad866c 100644
--- a/intern/ghost/intern/GHOST_Xr_openxr_includes.h
+++ b/intern/ghost/intern/GHOST_Xr_openxr_includes.h
@@ -44,7 +44,7 @@
#ifdef WITH_GHOST_X11
# ifdef WITH_GL_EGL
/* TODO: Why do we have to create this typedef manually? */
-typedef void (* (*PFNEGLGETPROCADDRESSPROC)(const char *procname))(void);
+typedef void (*(*PFNEGLGETPROCADDRESSPROC)(const char *procname))(void);
# include <GL/eglew.h>
# else
# include <GL/glxew.h>