Skip to content

Commit

Permalink
Remove unused flag and code
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcarnie authored and fire committed Jul 2, 2024
1 parent 4c11b54 commit 1f4527f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion drivers/gles3/rasterizer_canvas_gles3.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class RasterizerCanvasGLES3 : public RendererCanvasRender {
FLAGS_TRANSPOSE_RECT = (1 << 10),

FLAGS_NINEPACH_DRAW_CENTER = (1 << 12),
FLAGS_USING_PARTICLES = (1 << 13),

FLAGS_USE_SKELETON = (1 << 15),
FLAGS_NINEPATCH_H_MODE_SHIFT = 16,
Expand Down
7 changes: 0 additions & 7 deletions drivers/gles3/shaders/canvas.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,6 @@ void main() {
model_matrix = model_matrix * transpose(mat4(instance_xform0, instance_xform1, vec4(0.0, 0.0, 1.0, 0.0), vec4(0.0, 0.0, 0.0, 1.0)));
#endif // USE_INSTANCING

#if !defined(USE_ATTRIBUTES) && !defined(USE_PRIMITIVE)
if (bool(read_draw_data_flags & FLAGS_USING_PARTICLES)) {
//scale by texture size
vertex /= read_draw_data_color_texture_pixel_size;
}
#endif

vec2 color_texture_pixel_size = read_draw_data_color_texture_pixel_size;

#ifdef USE_POINT_SIZE
Expand Down
1 change: 0 additions & 1 deletion drivers/gles3/shaders/canvas_uniforms_inc.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define FLAGS_TRANSPOSE_RECT uint(1 << 10)
// (1 << 11) is for FLAGS_CONVERT_ATTRIBUTES_TO_LINEAR in RD backends, unused here.
#define FLAGS_NINEPACH_DRAW_CENTER uint(1 << 12)
#define FLAGS_USING_PARTICLES uint(1 << 13)

#define FLAGS_NINEPATCH_H_MODE_SHIFT 16
#define FLAGS_NINEPATCH_V_MODE_SHIFT 18
Expand Down
1 change: 0 additions & 1 deletion servers/rendering/renderer_rd/renderer_canvas_render_rd.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class RendererCanvasRenderRD : public RendererCanvasRender {
FLAGS_CONVERT_ATTRIBUTES_TO_LINEAR = (1 << 11),

FLAGS_NINEPACH_DRAW_CENTER = (1 << 12),
FLAGS_USING_PARTICLES = (1 << 13),

FLAGS_USE_SKELETON = (1 << 15),
FLAGS_NINEPATCH_H_MODE_SHIFT = 16,
Expand Down
7 changes: 0 additions & 7 deletions servers/rendering/renderer_rd/shaders/canvas.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,6 @@ void main() {
}
}

#if !defined(USE_ATTRIBUTES) && !defined(USE_PRIMITIVE)
if (bool(draw_data.flags & FLAGS_USING_PARTICLES)) {
//scale by texture size
vertex /= draw_data.color_texture_pixel_size;
}
#endif

#ifdef USE_POINT_SIZE
float point_size = 1.0;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#define FLAGS_TRANSPOSE_RECT (1 << 10)
#define FLAGS_CONVERT_ATTRIBUTES_TO_LINEAR (1 << 11)
#define FLAGS_NINEPACH_DRAW_CENTER (1 << 12)
#define FLAGS_USING_PARTICLES (1 << 13)

#define FLAGS_NINEPATCH_H_MODE_SHIFT 16
#define FLAGS_NINEPATCH_V_MODE_SHIFT 18
Expand Down

0 comments on commit 1f4527f

Please sign in to comment.