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:
authorJacques Lucke <jacques@blender.org>2022-03-22 15:44:15 +0300
committerJacques Lucke <jacques@blender.org>2022-03-22 15:44:15 +0300
commit2ebcb7fab3e237b7d00de3088c34780cd24f397b (patch)
treef348f5701a8e30ef9c2dcaa1628c5ac184ec4aa0 /source/blender/gpu/intern/gpu_context.cc
parent19c793af35ea8e694c16995d115d7c9247fee81a (diff)
Cleanup: make format and fix warning
Diffstat (limited to 'source/blender/gpu/intern/gpu_context.cc')
-rw-r--r--source/blender/gpu/intern/gpu_context.cc19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/blender/gpu/intern/gpu_context.cc b/source/blender/gpu/intern/gpu_context.cc
index 5b40d3850a5..c6eaf7defdc 100644
--- a/source/blender/gpu/intern/gpu_context.cc
+++ b/source/blender/gpu/intern/gpu_context.cc
@@ -14,7 +14,7 @@
/* TODO: Create cmake option. */
#if WITH_OPENGL
- #define WITH_OPENGL_BACKEND 1
+# define WITH_OPENGL_BACKEND 1
#endif
#include "BLI_assert.h"
@@ -152,18 +152,21 @@ void GPU_context_main_unlock()
* Used for global autoreleasepool flushing in Metal
* \{ */
-void GPU_render_begin() {
- GPUBackend* backend = GPUBackend::get();
+void GPU_render_begin()
+{
+ GPUBackend *backend = GPUBackend::get();
BLI_assert(backend);
backend->render_begin();
}
-void GPU_render_end() {
- GPUBackend* backend = GPUBackend::get();
+void GPU_render_end()
+{
+ GPUBackend *backend = GPUBackend::get();
BLI_assert(backend);
backend->render_end();
}
-void GPU_render_step() {
- GPUBackend* backend = GPUBackend::get();
+void GPU_render_step()
+{
+ GPUBackend *backend = GPUBackend::get();
BLI_assert(backend);
backend->render_step();
}
@@ -229,7 +232,7 @@ void GPU_backend_exit()
eGPUBackendType GPU_backend_get_type()
{
-
+
#ifdef WITH_OPENGL_BACKEND
if (g_backend && dynamic_cast<GLBackend *>(g_backend) != nullptr) {
return GPU_BACKEND_OPENGL;