Skip to content

Commit 8ad878f

Browse files
committed
Fix ubo tag placement in canvas.glsl gles3 fragment shader
1 parent 9a4942f commit 8ad878f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/gles3/shaders/canvas.glsl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,16 @@ uniform sampler2D color_texture; //texunit:0
346346

347347
layout(location = 0) out vec4 frag_color;
348348

349+
/* clang-format off */
350+
// This needs to be outside clang-format so the ubo comment is in the right place
349351
#ifdef MATERIAL_UNIFORMS_USED
350-
layout(std140) uniform MaterialUniforms{
351-
//ubo:4
352+
layout(std140) uniform MaterialUniforms{ //ubo:4
352353

353354
#MATERIAL_UNIFORMS
354355

355356
};
356357
#endif
358+
/* clang-format on */
357359

358360
#GLOBALS
359361

0 commit comments

Comments
 (0)