[Lint] Added InsertBraces to linter to unify codebase to one standard
This commit is contained in:
@@ -1141,9 +1141,15 @@ void PipelineCache::TranslateShadersForStorage(
|
||||
}
|
||||
}
|
||||
|
||||
if (dxc_compiler) dxc_compiler->Release();
|
||||
if (dxc_utils) dxc_utils->Release();
|
||||
if (dxbc_converter) dxbc_converter->Release();
|
||||
if (dxc_compiler) {
|
||||
dxc_compiler->Release();
|
||||
}
|
||||
if (dxc_utils) {
|
||||
dxc_utils->Release();
|
||||
}
|
||||
if (dxbc_converter) {
|
||||
dxbc_converter->Release();
|
||||
}
|
||||
};
|
||||
|
||||
size_t logical_processor_count = xe::threading::logical_processor_count();
|
||||
@@ -3260,9 +3266,15 @@ void PipelineCache::CreationThread(size_t thread_index) {
|
||||
}
|
||||
if (thread_index >= creation_threads_shutdown_from_) {
|
||||
// Cleanup thread-local resources.
|
||||
if (dxc_compiler) dxc_compiler->Release();
|
||||
if (dxc_utils) dxc_utils->Release();
|
||||
if (dxbc_converter) dxbc_converter->Release();
|
||||
if (dxc_compiler) {
|
||||
dxc_compiler->Release();
|
||||
}
|
||||
if (dxc_utils) {
|
||||
dxc_utils->Release();
|
||||
}
|
||||
if (dxbc_converter) {
|
||||
dxbc_converter->Release();
|
||||
}
|
||||
return;
|
||||
}
|
||||
creation_request_cond_.wait(lock);
|
||||
|
||||
@@ -154,8 +154,9 @@ X_STATUS GraphicsSystem::Setup(cpu::Processor* processor,
|
||||
|
||||
// If VSYNC is enabled, but frames are not limited,
|
||||
// lock framerate at default value of 60
|
||||
if (normalized_framerate_limit == 0 && cvars::vsync)
|
||||
if (normalized_framerate_limit == 0 && cvars::vsync) {
|
||||
normalized_framerate_limit = 60;
|
||||
}
|
||||
|
||||
const double vsync_duration_d =
|
||||
cvars::vsync
|
||||
|
||||
Reference in New Issue
Block a user