Commit cb8ff7fb by Nico Weber

clang/win: Fix a -Wreorder warning

..\..\third_party\angle\src\libANGLE\renderer\d3d\d3d11\SwapChain11.cpp(30,7) : error: field 'mDepthStencilRenderTarget' will be initialized after field 'mPassThroughResourcesInit' [-Werror,-Wreorder] mDepthStencilRenderTarget(this, renderer, true), ^ While here, also reorder the fields that are initialized in the constructor to match the order the fields are declared in, to make it easier to see if any are missing. No intended behavior change. BUG=505304 Change-Id: If48195c84161868d33d4361088d3ad22b7a0fc31 Reviewed-on: https://chromium-review.googlesource.com/284682Reviewed-by: 's avatarNico Weber <thakis@chromium.org> Tested-by: 's avatarNico Weber <thakis@chromium.org>
parent 06c5a646
......@@ -26,29 +26,34 @@ SwapChain11::SwapChain11(Renderer11 *renderer, NativeWindow nativeWindow, HANDLE
GLenum backBufferFormat, GLenum depthBufferFormat)
: SwapChainD3D(nativeWindow, shareHandle, backBufferFormat, depthBufferFormat),
mRenderer(renderer),
mPassThroughResourcesInit(false),
mColorRenderTarget(this, renderer, false),
mDepthStencilRenderTarget(this, renderer, true),
mPassThroughResourcesInit(false)
mDepthStencilRenderTarget(this, renderer, true)
{
mHeight = -1;
mWidth = -1;
mAppCreatedShareHandle = mShareHandle != NULL;
mSwapInterval = 0;
mSwapChain = NULL;
mSwapChain1 = nullptr;
mBackBufferTexture = NULL;
mBackBufferRTView = NULL;
mOffscreenTexture = NULL;
mOffscreenRTView = NULL;
mOffscreenSRView = NULL;
mDepthStencilTexture = NULL;
mDepthStencilDSView = NULL;
mDepthStencilSRView = NULL;
mQuadVB = NULL;
mPassThroughSampler = NULL;
mPassThroughIL = NULL;
mPassThroughVS = NULL;
mPassThroughPS = NULL;
mWidth = -1;
mHeight = -1;
mSwapInterval = 0;
mAppCreatedShareHandle = mShareHandle != NULL;
}
SwapChain11::~SwapChain11()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment