diff options
| author | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
| commit | f8db8a3faa30b71dca33ced38be16d3f93f43e8a (patch) | |
| tree | 3b798318132cca7eccfbca5818ab55656a2896d7 /platform/windows/ctxgl_procaddr.cpp | |
| parent | 1d418afe863c9e553b69174ce63aef203c46d2f0 (diff) | |
| download | godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.gz godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.zst godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.zip | |
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6e3e905b94b8764e99491e608122261.
Diffstat (limited to 'platform/windows/ctxgl_procaddr.cpp')
| -rw-r--r-- | platform/windows/ctxgl_procaddr.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/platform/windows/ctxgl_procaddr.cpp b/platform/windows/ctxgl_procaddr.cpp index bc8611dce..79c6f219f 100644 --- a/platform/windows/ctxgl_procaddr.cpp +++ b/platform/windows/ctxgl_procaddr.cpp @@ -31,7 +31,7 @@ #include <GL/gl.h> #include <stdio.h> -static PROC _gl_procs[]={ +static PROC _gl_procs[] = { (PROC)glCullFace, (PROC)glFrontFace, (PROC)glHint, @@ -99,7 +99,7 @@ static PROC _gl_procs[]={ 0 }; -static const char* _gl_proc_names[]={ +static const char *_gl_proc_names[] = { "glCullFace", "glFrontFace", "glHint", @@ -167,15 +167,15 @@ static const char* _gl_proc_names[]={ 0 }; -PROC get_gl_proc_address(const char* p_address) { +PROC get_gl_proc_address(const char *p_address) { - PROC proc = wglGetProcAddress((const CHAR*)p_address); + PROC proc = wglGetProcAddress((const CHAR *)p_address); if (!proc) { - int i=0; - while(_gl_procs[i]) { + int i = 0; + while (_gl_procs[i]) { - if (strcmp(p_address,_gl_proc_names[i])==0) { + if (strcmp(p_address, _gl_proc_names[i]) == 0) { return _gl_procs[i]; } i++; |
