mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
Fixes old g++ build error with default template arguments, by wrapping them in parentheses.
This was SVN commit r10990.
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
||||
* @param defines key/value set of preprocessor definitions
|
||||
* @return loaded program, or null pointer on error
|
||||
*/
|
||||
CShaderProgramPtr LoadProgram(const char* name, const std::map<CStr, CStr>& defines = std::map<CStr, CStr>());
|
||||
CShaderProgramPtr LoadProgram(const char* name, const std::map<CStr, CStr>& defines = (std::map<CStr, CStr>()));
|
||||
|
||||
/**
|
||||
* Load a shader effect.
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
* @param defines key/value set of preprocessor definitions
|
||||
* @return loaded technique, or empty technique on error
|
||||
*/
|
||||
CShaderTechnique LoadEffect(const char* name, const std::map<CStr, CStr>& defines = std::map<CStr, CStr>());
|
||||
CShaderTechnique LoadEffect(const char* name, const std::map<CStr, CStr>& defines = (std::map<CStr, CStr>()));
|
||||
|
||||
private:
|
||||
bool NewProgram(const char* name, const std::map<CStr, CStr>& defines, CShaderProgramPtr& program);
|
||||
|
||||
Reference in New Issue
Block a user