Commit 485f92cd by Nicolas Capens

Fix initialization order warnings.

Bug 15387371 Change-Id: I01da3db7d6bb795c46153dbc12fd41478f4b6416 Reviewed-on: https://swiftshader-review.googlesource.com/4493Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 8e8be7c2
......@@ -193,7 +193,7 @@ namespace glsl
else UNREACHABLE(0);
}
OutputASM::OutputASM(TParseContext &context, Shader *shaderObject) : TIntermTraverser(true, true, true), mContext(context), shaderObject(shaderObject)
OutputASM::OutputASM(TParseContext &context, Shader *shaderObject) : TIntermTraverser(true, true, true), shaderObject(shaderObject), mContext(context)
{
shader = 0;
pixelShader = 0;
......
......@@ -166,7 +166,7 @@ std::size_t IndexDataManager::typeSize(GLenum type)
}
}
StreamingIndexBuffer::StreamingIndexBuffer(unsigned int initialSize) : mBufferSize(initialSize), mIndexBuffer(NULL)
StreamingIndexBuffer::StreamingIndexBuffer(unsigned int initialSize) : mIndexBuffer(nullptr), mBufferSize(initialSize)
{
if(initialSize > 0)
{
......
......@@ -148,7 +148,7 @@ std::size_t IndexDataManager::typeSize(GLenum type)
}
}
StreamingIndexBuffer::StreamingIndexBuffer(unsigned int initialSize) : mBufferSize(initialSize), mIndexBuffer(NULL)
StreamingIndexBuffer::StreamingIndexBuffer(unsigned int initialSize) : mIndexBuffer(nullptr), mBufferSize(initialSize)
{
if(initialSize > 0)
{
......
......@@ -40,7 +40,7 @@
namespace es2
{
Context::Context(const egl::Config *config, const Context *shareContext, EGLint clientVersion)
: mConfig(config), clientVersion(clientVersion)
: clientVersion(clientVersion), mConfig(config)
{
sw::Context *context = new sw::Context();
device = new es2::Device(context);
......
......@@ -99,7 +99,7 @@ namespace sw
deallocate(data);
}
Renderer::Renderer(Context *context, Conventions conventions, bool exactColorRounding) : context(context), VertexProcessor(context), PixelProcessor(context), SetupProcessor(context), viewport()
Renderer::Renderer(Context *context, Conventions conventions, bool exactColorRounding) : VertexProcessor(context), PixelProcessor(context), SetupProcessor(context), context(context), viewport()
{
sw::halfIntegerCoordinates = conventions.halfIntegerCoordinates;
sw::symmetricNormalizedDepth = conventions.symmetricNormalizedDepth;
......
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