Add back unused-variable warning
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#include "render/imgui_impl.h"
|
||||
#include "render/ui_theme.h"
|
||||
#include "render/ui_widgets.h"
|
||||
#include "stream.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "xr/instance.h"
|
||||
#include "xr/session.h"
|
||||
@@ -488,7 +487,7 @@ void settings_post_processing(const settings_context & ctx)
|
||||
o.push_back(flag_name(f));
|
||||
return o; },
|
||||
.title = std::move(title),
|
||||
.default_int = index(flags, config.openxr_post_processing.*member).value_or(0),
|
||||
.default_int = index(flags, default_config.openxr_post_processing.*member).value_or(0),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
|
||||
class configuration;
|
||||
class imgui_context;
|
||||
@@ -39,7 +40,7 @@ namespace wivrn::gui
|
||||
struct settings_context
|
||||
{
|
||||
configuration & config;
|
||||
configuration & default_config;
|
||||
const configuration & default_config;
|
||||
xr::instance & instance;
|
||||
xr::session & session;
|
||||
xr::system & system;
|
||||
|
||||
@@ -1115,7 +1115,6 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> scenes::lobby::draw_gui(XrTi
|
||||
ImGui::SetNextWindowSize({1400, 900});
|
||||
ImGui::Begin("WiVRn", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
|
||||
|
||||
auto & config = application::get_config();
|
||||
const float TopBarH = wivrn::ui::metrics::top_bar_height;
|
||||
|
||||
// Top bar: logo left, feature toggles / battery / connection status right
|
||||
|
||||
@@ -642,8 +642,6 @@ libcurl::curl_handle * scenes::lobby::parse_environment_list()
|
||||
|
||||
void scenes::lobby::gui_customize(XrTime predicted_display_time)
|
||||
{
|
||||
auto & config = application::get_config();
|
||||
|
||||
namespace ui = wivrn::ui;
|
||||
|
||||
ui::page_header(_cS("page header title", "Environment"), _cS("page header subtitle", "Choose the environment your panels float in."));
|
||||
|
||||
@@ -316,17 +316,7 @@ virtual_keyboard::key_status virtual_keyboard::button_behavior(const ImRect & bb
|
||||
if (mouse_down)
|
||||
{
|
||||
held = true;
|
||||
|
||||
float prev_held_duration = held_duration;
|
||||
held_duration += g.IO.DeltaTime;
|
||||
// if ((flags & ImGuiButtonFlags_Repeat) and held_duration > g.IO.KeyRepeatDelay)
|
||||
// {
|
||||
// int n1 = (prev_held_duration - g.IO.KeyRepeatDelay) / g.IO.KeyRepeatRate;
|
||||
// int n2 = (held_duration - g.IO.KeyRepeatDelay) / g.IO.KeyRepeatRate;
|
||||
//
|
||||
// if (n2 != n1)
|
||||
// pressed = true;
|
||||
// }
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -894,8 +894,6 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
session.begin_frame();
|
||||
|
||||
std::array<int, view_count> image_indices;
|
||||
|
||||
#if WIVRN_FEATURE_RENDERDOC
|
||||
renderdoc_begin(*vk_instance);
|
||||
#endif
|
||||
|
||||
@@ -119,8 +119,6 @@ stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view,
|
||||
|
||||
target.layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
|
||||
|
||||
const auto & vk_device_extensions = application::get_vk_device_extensions();
|
||||
|
||||
// Vertex shader
|
||||
auto vertex_shader = load_shader(device, "reprojection.vert");
|
||||
|
||||
|
||||
@@ -363,8 +363,6 @@ void scenes::stream::gui_performance_metrics()
|
||||
|
||||
void scenes::stream::gui_compact_view()
|
||||
{
|
||||
const auto & metrics = global_metrics[(metrics_offset + global_metrics.size() - 1) % global_metrics.size()];
|
||||
|
||||
if (ImGui::BeginTable("metrics", 2))
|
||||
{
|
||||
auto f = [&](const char * label, float value, const char * unit) {
|
||||
|
||||
@@ -280,7 +280,6 @@ void scenes::stream::tracking()
|
||||
float applied_height_offset = config.get_height_offset();
|
||||
xr::space height_offset_space = make_height_offset_space(applied_height_offset);
|
||||
|
||||
XrTime t0 = instance.now();
|
||||
from_headset::tracking tracking;
|
||||
std::vector<from_headset::hand_tracking> hands;
|
||||
std::vector<std::variant<from_headset::meta_body, from_headset::bd_body, from_headset::htc_body>> body;
|
||||
|
||||
Reference in New Issue
Block a user