Fix memory init issue, to make sure the class members are init in order.
This commit is contained in:
parent
fc017379e3
commit
8a5824f5bf
1 changed files with 3 additions and 3 deletions
|
|
@ -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*)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue