diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-15 16:00:21 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-15 16:00:21 +0300 |
commit | beae4564e365e4f61cb7ee535701fa9e82afc7ef (patch) | |
tree | 14be6f82389e1dbd6a002cfcca43605f2fca0608 /indra/newview/llviewershadermgr.h | |
parent | 462b1c6544425c0a37f27da32fbf770e9e7373f9 (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 93bb29a355..f8a261805b 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(); |