You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@@ -37,7 +37,6 @@ void RasterizerRD::prepare_for_blitting_render_targets() {
|
||||
}
|
||||
|
||||
void RasterizerRD::blit_render_targets_to_screen(DisplayServer::WindowID p_screen, const BlitToScreen *p_render_targets, int p_amount) {
|
||||
|
||||
RD::DrawListID draw_list = RD::get_singleton()->draw_list_begin_for_screen(p_screen);
|
||||
|
||||
for (int i = 0; i < p_amount; i++) {
|
||||
@@ -90,7 +89,6 @@ void RasterizerRD::begin_frame(double frame_step) {
|
||||
}
|
||||
|
||||
void RasterizerRD::end_frame(bool p_swap_buffers) {
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#warning TODO: likely passa bool to swap buffers to avoid display?
|
||||
#endif
|
||||
@@ -98,7 +96,6 @@ void RasterizerRD::end_frame(bool p_swap_buffers) {
|
||||
}
|
||||
|
||||
void RasterizerRD::initialize() {
|
||||
|
||||
{ //create framebuffer copy shader
|
||||
RenderingDevice::ShaderStageData vert;
|
||||
vert.shader_stage = RenderingDevice::SHADER_STAGE_VERTEX;
|
||||
@@ -161,7 +158,6 @@ ThreadWorkPool RasterizerRD::thread_work_pool;
|
||||
uint64_t RasterizerRD::frame = 1;
|
||||
|
||||
void RasterizerRD::finalize() {
|
||||
|
||||
thread_work_pool.finish();
|
||||
|
||||
memdelete(scene);
|
||||
|
||||
Reference in New Issue
Block a user