mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Fix clang-tidy warnings (#4359)
The warnings included recommendations of braces for if statement readability, a recommendation for default initialization of an int array, and include-what-you-use (indirectly through clang-tidy reporting undefined symbols).
This commit is contained in:
@@ -69,8 +69,9 @@ static bool CreateDeviceD3D(HWND hWnd) {
|
||||
nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, createDeviceFlags,
|
||||
featureLevelArray, 2, D3D11_SDK_VERSION, &sd,
|
||||
&gPlatformContext->pSwapChain, &gPlatformContext->pd3dDevice,
|
||||
&featureLevel, &gPlatformContext->pd3dDeviceContext) != S_OK)
|
||||
&featureLevel, &gPlatformContext->pd3dDeviceContext) != S_OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CreateRenderTarget();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user