Commit e92a6fa3 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

const decl ptr in constructor

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7faa8d65
......@@ -309,7 +309,7 @@ const QStringList& ShaderGenerator::getShaderCode()
QStringList ShaderProgGenerator::lightingCode_;
ShaderProgGenerator::ShaderProgGenerator(ShaderGenDesc* _desc)
ShaderProgGenerator::ShaderProgGenerator(const ShaderGenDesc* _desc)
: vertex_(0), fragment_(0)
memcpy(&desc_, _desc, sizeof(ShaderGenDesc));
......@@ -169,7 +169,7 @@ ShaderProgGenerator is responsible for generating a matching pair of vertex and
class ShaderProgGenerator
ShaderProgGenerator(ShaderGenDesc* _desc);
ShaderProgGenerator(const ShaderGenDesc* _desc);
virtual ~ShaderProgGenerator(void);
void saveVertexShToFile(const char* _fileName);
Supports Markdown
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