mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
oops... fix first-time config initialization disaster!
This commit is contained in:
@@ -7212,7 +7212,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
|
|||||||
{
|
{
|
||||||
for(DF_CfgSrc src = (DF_CfgSrc)0; src < DF_CfgSrc_COUNT; src = (DF_CfgSrc)(src+1))
|
for(DF_CfgSrc src = (DF_CfgSrc)0; src < DF_CfgSrc_COUNT; src = (DF_CfgSrc)(src+1))
|
||||||
{
|
{
|
||||||
cfg_load[src] = (load_cfg[src] && cfg_timestamps[src] != 0 && ((cfg_save[src] == 0 && df_state->cfg_cached_timestamp[src] != cfg_timestamps[src]) || cfg_files[src]->timestamp == 0));
|
cfg_load[src] = (load_cfg[src] && ((cfg_save[src] == 0 && df_state->cfg_cached_timestamp[src] != cfg_timestamps[src]) || cfg_files[src]->timestamp == 0));
|
||||||
cfg_load_any = cfg_load_any || cfg_load[src];
|
cfg_load_any = cfg_load_any || cfg_load[src];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -11530,7 +11530,7 @@ df_gfx_begin_frame(Arena *arena, DF_CmdList *cmds)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//- rjf: if config opened 0 windows, we need to do some sensible default
|
//- rjf: if config opened 0 windows, we need to do some sensible default
|
||||||
if(df_gfx_state->first_window == 0)
|
if(windows->first == &df_g_nil_cfg_node)
|
||||||
{
|
{
|
||||||
OS_Handle preferred_monitor = os_primary_monitor();
|
OS_Handle preferred_monitor = os_primary_monitor();
|
||||||
Vec2F32 monitor_dim = os_dim_from_monitor(preferred_monitor);
|
Vec2F32 monitor_dim = os_dim_from_monitor(preferred_monitor);
|
||||||
|
|||||||
@@ -161,6 +161,11 @@ r_init(CmdLine *cmdln)
|
|||||||
feature_levels, ArrayCount(feature_levels),
|
feature_levels, ArrayCount(feature_levels),
|
||||||
D3D11_SDK_VERSION,
|
D3D11_SDK_VERSION,
|
||||||
&r_d3d11_state->base_device, 0, &r_d3d11_state->base_device_ctx);
|
&r_d3d11_state->base_device, 0, &r_d3d11_state->base_device_ctx);
|
||||||
|
if(!SUCCEEDED(error))
|
||||||
|
{
|
||||||
|
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("D3D11 device creation failure. The process is terminating."));
|
||||||
|
os_exit_process(1);
|
||||||
|
}
|
||||||
|
|
||||||
//- rjf: enable break-on-error
|
//- rjf: enable break-on-error
|
||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
@@ -168,9 +173,12 @@ r_init(CmdLine *cmdln)
|
|||||||
{
|
{
|
||||||
ID3D11InfoQueue *info = 0;
|
ID3D11InfoQueue *info = 0;
|
||||||
error = r_d3d11_state->base_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void **)(&info));
|
error = r_d3d11_state->base_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void **)(&info));
|
||||||
error = info->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_CORRUPTION, TRUE);
|
if(SUCCEEDED(error))
|
||||||
error = info->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_ERROR, TRUE);
|
{
|
||||||
info->Release();
|
error = info->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_CORRUPTION, TRUE);
|
||||||
|
error = info->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_ERROR, TRUE);
|
||||||
|
info->Release();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user