Make legacy texture prototypes more concise, fix minor bugs needed to support it.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20650 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
1aec044854
commit
e396a22632
2 changed files with 52 additions and 44 deletions
|
|
@ -144,8 +144,12 @@ protected:
|
|||
struct TParameter {
|
||||
TString *name;
|
||||
TType* type;
|
||||
void copyParam(const TParameter& param, const TStructureMap& remapper) {
|
||||
name = NewPoolTString(param.name->c_str());
|
||||
void copyParam(const TParameter& param, const TStructureMap& remapper)
|
||||
{
|
||||
if (param.name)
|
||||
name = NewPoolTString(param.name->c_str());
|
||||
else
|
||||
name = 0;
|
||||
type = param.type->clone(remapper);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue