Fix viewing channels in 2d view

This commit is contained in:
luboslenco
2025-08-16 16:02:31 +02:00
parent bf8e8dd58e
commit 173801bb18
+1 -2
View File
@@ -42,7 +42,6 @@ function ui_view2d_init() {
ARRAY_ACCESS(ui_view2d_pipe.color_write_mask_alpha, 0) = false;
gpu_pipeline_compile(ui_view2d_pipe);
pipes_offset = 0;
pipes_get_constant_location("mat4");
pipes_get_constant_location("float4");
pipes_get_constant_location("float4");
pipes_get_constant_location("float4");
@@ -197,7 +196,7 @@ function ui_view2d_render() {
ui_view2d_tex_type == paint_tex_t.OPACITY ? 4 :
ui_view2d_tex_type == paint_tex_t.HEIGHT ? 4 :
ui_view2d_tex_type == paint_tex_t.NORMAL ? 5 :
0;
0;
}
else if (ui_view2d_type == view_2d_type_t.FONT) {
tex = context_raw.font.image;