diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-15 16:00:21 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-08-20 00:35:02 +0300 |
commit | 664ba53e4ce8510345e490cedf4401f6655f38fc (patch) | |
tree | cce2d45240725fa44df1b07258bfee8976314146 /indra/newview/llviewershadermgr.h | |
parent | 0ab6dfa12eb04238d82c7a4aea7390cbd28beacd (diff) |
SL-17584 Make setShaders crashes more informative
Diffstat (limited to 'indra/newview/llviewershadermgr.h')
-rw-r--r-- | indra/newview/llviewershadermgr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewershadermgr.h b/indra/newview/llviewershadermgr.h index 87d90b49a9..ef49074959 100644 --- a/indra/newview/llviewershadermgr.h +++ b/indra/newview/llviewershadermgr.h @@ -49,7 +49,11 @@ public: void setShaders(); void unloadShaders(); S32 getShaderLevel(S32 type); - BOOL loadBasicShaders(); + + // loadBasicShaders in case of a failure returns + // name of a file error happened at, otherwise + // returns an empty string + std::string loadBasicShaders(); BOOL loadShadersEffects(); BOOL loadShadersDeferred(); BOOL loadShadersObject(); |