extern/shiny update: made caching more robust

This commit is contained in:
scrawl 2013-02-04 18:04:09 +01:00
parent bf037b7d29
commit a7d910614f
5 changed files with 40 additions and 27 deletions

View file

@ -30,9 +30,6 @@ namespace sh
/// so it does not matter if you pass any extra properties that the shader does not care about.
ShaderInstance* getInstance (PropertySetGet* properties);
void markDirty() { mIsDirty = true; }
///< Signals that the cache is out of date, and thus should not be used this time
private:
PropertySetGet* getCurrentGlobalSettings() const;
std::string getBasePath() const;
@ -41,12 +38,8 @@ namespace sh
std::string getHlslProfile() const;
int getType() const;
bool isDirty() { return mIsDirty; }
friend class ShaderInstance;
bool mIsDirty;
private:
GpuProgramType mType;
std::string mSource;