Skip to content

Commit bebf854

Browse files
committed
Use a full screen triangle for mipmap calculations in mobile renderer
1 parent b9e0223 commit bebf854

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

servers/rendering/renderer_rd/effects/copy_effects.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,9 @@ void CopyEffects::copy_raster(RID p_source_texture, RID p_dest_framebuffer) {
661661
RD::DrawListID draw_list = RD::get_singleton()->draw_list_begin(p_dest_framebuffer, RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_STORE, RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_DISCARD);
662662
RD::get_singleton()->draw_list_bind_render_pipeline(draw_list, blur_raster.pipelines[BLUR_MODE_COPY].get_render_pipeline(RD::INVALID_ID, RD::get_singleton()->framebuffer_get_format(p_dest_framebuffer)));
663663
RD::get_singleton()->draw_list_bind_uniform_set(draw_list, uniform_set_cache->get_cache(shader, 0, u_source_texture), 0);
664-
RD::get_singleton()->draw_list_bind_index_array(draw_list, material_storage->get_quad_index_array());
665664
RD::get_singleton()->draw_list_set_push_constant(draw_list, &blur_raster.push_constant, sizeof(BlurRasterPushConstant));
666665

667-
RD::get_singleton()->draw_list_draw(draw_list, true);
666+
RD::get_singleton()->draw_list_draw(draw_list, false, 1u, 3u);
668667
RD::get_singleton()->draw_list_end();
669668
}
670669

@@ -927,10 +926,9 @@ void CopyEffects::make_mipmap_raster(RID p_source_rd_texture, RID p_dest_texture
927926
RD::DrawListID draw_list = RD::get_singleton()->draw_list_begin(dest_framebuffer, RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_STORE, RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_DISCARD);
928927
RD::get_singleton()->draw_list_bind_render_pipeline(draw_list, blur_raster.pipelines[mode].get_render_pipeline(RD::INVALID_ID, RD::get_singleton()->framebuffer_get_format(dest_framebuffer)));
929928
RD::get_singleton()->draw_list_bind_uniform_set(draw_list, uniform_set_cache->get_cache(shader, 0, u_source_rd_texture), 0);
930-
RD::get_singleton()->draw_list_bind_index_array(draw_list, material_storage->get_quad_index_array());
931929
RD::get_singleton()->draw_list_set_push_constant(draw_list, &blur_raster.push_constant, sizeof(BlurRasterPushConstant));
932930

933-
RD::get_singleton()->draw_list_draw(draw_list, true);
931+
RD::get_singleton()->draw_list_draw(draw_list, false, 1u, 3u);
934932
RD::get_singleton()->draw_list_end();
935933
}
936934

0 commit comments

Comments
 (0)