Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ static void on_init_device(reshade::api::device* device)

g_device = device;

reshade::config_get_value(nullptr, "HDR", "EnableHDR", g_hdr_enable);
reshade::get_config_value(nullptr, "HDR", "EnableHDR", g_hdr_enable);
}

static void on_destroy_device(reshade::api::device* device)
Expand All @@ -372,14 +372,14 @@ static void on_destroy_device(reshade::api::device* device)

static bool on_create_swapchain(reshade::api::swapchain_desc& swapchain_desc, void* hwnd)
{
swapchain_desc.texture.format = reshade::api::format::r10g10b10a2_unorm;
swapchain_desc.back_buffer.texture.format = reshade::api::format::r10g10b10a2_unorm;

//swapchain_desc.refresh_rate.numerator = 60;
//swapchain_desc.refresh_rate.denominator = 1;

if (swapchain_desc.buffer_count < 2)
if (swapchain_desc.back_buffer_count < 2)
{
swapchain_desc.buffer_count = 2;
swapchain_desc.back_buffer_count = 2;
}

if (g_device)
Expand Down Expand Up @@ -610,7 +610,7 @@ static void draw_settings_overlay(reshade::api::effect_runtime* runtime)

if (modified)
{
reshade::config_set_value(nullptr, "HDR", "EnableHDR", g_hdr_enable);
reshade::set_config_value(nullptr, "HDR", "EnableHDR", g_hdr_enable);
}
}
else
Expand Down Expand Up @@ -663,4 +663,4 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID)
break;
}
return TRUE;
}
}