diff options
author | chai <chaifix@163.com> | 2019-01-04 22:54:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-04 22:54:59 +0800 |
commit | c446e8186afa31c8d346383c0db8b8070fa563cd (patch) | |
tree | a2a0e088c51f1ba251756aa5ab50b27dc8eeef39 /src/libjin/graphics/shaders/je_shader.cpp | |
parent | c42eb2529eead4b17c0c7f9da7ac9c41563a13fa (diff) |
*编译jsl shader失败时使用error shader
Diffstat (limited to 'src/libjin/graphics/shaders/je_shader.cpp')
-rw-r--r-- | src/libjin/graphics/shaders/je_shader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libjin/graphics/shaders/je_shader.cpp b/src/libjin/graphics/shaders/je_shader.cpp index 0eb3631..059c411 100644 --- a/src/libjin/graphics/shaders/je_shader.cpp +++ b/src/libjin/graphics/shaders/je_shader.cpp @@ -5,6 +5,7 @@ #include "../../time/je_timer.h" #include "../../filesystem/je_buffer.h" +#include "../../utils/je_log.h" #include "../../utils/je_macros.h" #include "../je_gl.h" @@ -65,7 +66,8 @@ namespace JinEngine { if (!compile(program)) { - throw 0; + jin_log_error("Compile jsl shader failed."); + throw Exception("Compile jsl shader failed"); } } |