Commit 8a5824f5 by Roy

Fix memory init issue, to make sure the class members are init in order.

parent fc017379
...@@ -290,11 +290,11 @@ struct TSymbolValidater ...@@ -290,11 +290,11 @@ struct TSymbolValidater
{ {
TSymbolValidater(TIoMapResolver& r, TInfoSink& i, TVarLiveMap* in[EShLangCount], TVarLiveMap* out[EShLangCount], TSymbolValidater(TIoMapResolver& r, TInfoSink& i, TVarLiveMap* in[EShLangCount], TVarLiveMap* out[EShLangCount],
TVarLiveMap* uniform[EShLangCount], bool& hadError) TVarLiveMap* uniform[EShLangCount], bool& hadError)
: resolver(r) : preStage(EShLangCount)
, infoSink(i)
, currentStage(EShLangCount) , currentStage(EShLangCount)
, preStage(EShLangCount)
, nextStage(EShLangCount) , nextStage(EShLangCount)
, resolver(r)
, infoSink(i)
, hadError(hadError) , hadError(hadError)
{ {
memcpy(inVarMaps, in, EShLangCount * (sizeof(TVarLiveMap*))); memcpy(inVarMaps, in, EShLangCount * (sizeof(TVarLiveMap*)));
......
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