Skip to content

Commit

Permalink
Fix ubo tag placement in canvas.glsl gles3 fragment shader
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus committed Jun 19, 2024
1 parent 9a4942f commit 8ad878f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/gles3/shaders/canvas.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,16 @@ uniform sampler2D color_texture; //texunit:0

layout(location = 0) out vec4 frag_color;

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

#MATERIAL_UNIFORMS

};
#endif
/* clang-format on */

#GLOBALS

Expand Down

0 comments on commit 8ad878f

Please sign in to comment.