mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 15:47:30 +01:00
chore: remove the NVRHI-based betterRenderer
This commit is contained in:
@@ -203,11 +203,8 @@ void scenarioloader_ui::render_()
|
||||
const float font_scale_mult = 48 / ImGui::GetFontSize() * scale;
|
||||
|
||||
// Gradient at the lower half of the screen
|
||||
if (!Global.NvRenderer)
|
||||
{
|
||||
const ImTextureID tex = (ImTextureID)(intptr_t)m_gradient_overlay_tex; // See https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples#example-for-opengl-users
|
||||
draw_list->AddImage(tex, ImVec2(0, Global.window_size.y / 2), ImVec2(Global.window_size.x, Global.window_size.y), ImVec2(0, 0), ImVec2(1, 1));
|
||||
}
|
||||
const ImTextureID tex = (ImTextureID)(intptr_t)m_gradient_overlay_tex; // See https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples#example-for-opengl-users
|
||||
draw_list->AddImage(tex, ImVec2(0, Global.window_size.y / 2), ImVec2(Global.window_size.x, Global.window_size.y), ImVec2(0, 0), ImVec2(1, 1));
|
||||
|
||||
// [O] Loading...
|
||||
const float margin_left_icon = 35.0f * scale;
|
||||
@@ -300,8 +297,6 @@ void scenarioloader_ui::render_()
|
||||
|
||||
void scenarioloader_ui::generate_gradient_tex()
|
||||
{
|
||||
if (Global.NvRenderer)
|
||||
return;
|
||||
constexpr int image_width = 1;
|
||||
constexpr int image_height = 1024;
|
||||
const auto image_data = new char[image_width * image_height * 4];
|
||||
|
||||
Reference in New Issue
Block a user