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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user