Browse Source

Put back a fix that the PandaSE team happily but accidentally reverted

rdb 15 years ago
parent
commit
c9073b1d80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/gobj/shader.h

+ 1 - 1
panda/src/gobj/shader.h

@@ -66,7 +66,7 @@ PUBLISHED:
   static PT(Shader) make(const ShaderLanguage &lang, const string &vertex, const string &fragment, const string &geometry = "");
   static PT(Shader) make(const ShaderLanguage &lang, const string &vertex, const string &fragment, const string &geometry = "");
 
 
   INLINE const Filename get_filename(const ShaderType &type = ST_none) const;
   INLINE const Filename get_filename(const ShaderType &type = ST_none) const;
-  INLINE const string get_text(const ShaderType &type = ST_none) const;
+  INLINE const string &get_text(const ShaderType &type = ST_none) const;
   INLINE const bool get_error_flag() const;
   INLINE const bool get_error_flag() const;
   INLINE const ShaderLanguage get_language() const;
   INLINE const ShaderLanguage get_language() const;