summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/exposure.glsl
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-08-27 07:31:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-08-27 07:34:14 +0200
commit4226d56ca9ec91c4878d47e3bce4784e5edc3006 (patch)
tree92a34cf9488067658e5f32da6d48bd5869a40c6b /drivers/gles2/shaders/exposure.glsl
parentdb55d8a4b6ad6c14f2131e02b50689eb8380276f (diff)
Style: Enable clang-format on GLSL shaders
As of clang-format 6.0.1, putting the `/* clang-format off */` hint around our "invalid" `[vertex]` and `[shader]` statements isn't enough to prevent a bogus indent of the next comments and first valid statement, so we need to enclose that first valid statement in the unformatted chunk.
Diffstat (limited to 'drivers/gles2/shaders/exposure.glsl')
-rw-r--r--drivers/gles2/shaders/exposure.glsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gles2/shaders/exposure.glsl b/drivers/gles2/shaders/exposure.glsl
index 18fff1ae36..759adcda06 100644
--- a/drivers/gles2/shaders/exposure.glsl
+++ b/drivers/gles2/shaders/exposure.glsl
@@ -1,15 +1,19 @@
+/* clang-format off */
[vertex]
layout(location = 0) in highp vec4 vertex_attrib;
+/* clang-format on */
void main() {
gl_Position = vertex_attrib;
}
+/* clang-format off */
[fragment]
uniform highp sampler2D source_exposure; //texunit:0
+/* clang-format on */
#ifdef EXPOSURE_BEGIN