summaryrefslogtreecommitdiffstats
path: root/gles_builders.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-11-20 11:14:07 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-11-20 11:15:02 +0100
commit173b342ca738916cf113554291bb11f7cce71043 (patch)
tree4598f90fb62b679f30526474c6dfa01bdd76943b /gles_builders.py
parent5c3422873f6831fa6c746372e71d6c64d15197f0 (diff)
downloadredot-engine-173b342ca738916cf113554291bb11f7cce71043.tar.gz
Remove trailing whitespace
With `sed -i $(rg -l '[[:blank:]]*$' -g'!thirdparty') -e 's/[[:blank:]]*$//g'` (+ manual revert of some thirdparty code under `platform/android`).
Diffstat (limited to 'gles_builders.py')
-rw-r--r--gles_builders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gles_builders.py b/gles_builders.py
index f9fd6d3fa2..e56ccc4431 100644
--- a/gles_builders.py
+++ b/gles_builders.py
@@ -231,9 +231,9 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs, gles2
fd.write("\t_FORCE_INLINE_ void set_conditional(Conditionals p_conditional,bool p_enable) { _set_conditional(p_conditional,p_enable); }\n\n")
fd.write("\t#ifdef DEBUG_ENABLED\n ")
fd.write("\t#define _FU if (get_uniform(p_uniform)<0) return; if (!is_version_valid()) return; ERR_FAIL_COND( get_active()!=this ); \n\n ")
- fd.write("\t#else\n ")
+ fd.write("\t#else\n ")
fd.write("\t#define _FU if (get_uniform(p_uniform)<0) return; \n\n ")
- fd.write("\t#endif\n")
+ fd.write("\t#endif\n")
fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, float p_value) { _FU glUniform1f(get_uniform(p_uniform),p_value); }\n\n")
fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, double p_value) { _FU glUniform1f(get_uniform(p_uniform),p_value); }\n\n")
fd.write("\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, uint8_t p_value) { _FU glUniform1i(get_uniform(p_uniform),p_value); }\n\n")