diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-11-11 12:27:52 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-11-11 12:27:52 -0300 |
commit | a7078a4be9f4c44a41e5c7e7a633169b53f78d48 (patch) | |
tree | 35db5242c153b8d3a9732fcd5654e7a5c9d2e4e6 /drivers/gles3/shader_gles3.cpp | |
parent | cacf9ebb7fd8df8845daca9da2fe55456cc179aa (diff) |
Done with lights and shadows (wonder if i'm missing something..)
Diffstat (limited to 'drivers/gles3/shader_gles3.cpp')
-rw-r--r-- | drivers/gles3/shader_gles3.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gles3/shader_gles3.cpp b/drivers/gles3/shader_gles3.cpp index 052c915241..6f0616035a 100644 --- a/drivers/gles3/shader_gles3.cpp +++ b/drivers/gles3/shader_gles3.cpp @@ -228,8 +228,15 @@ ShaderGLES3::Version* ShaderGLES3::get_current_version() { #endif + int define_line_ofs=1; + for(int i=0;i<custom_defines.size();i++) { + + strings.push_back(custom_defines[i].get_data()); + define_line_ofs++; + } + for(int j=0;j<conditional_count;j++) { bool enable=((1<<j)&conditional_version.version); @@ -242,6 +249,8 @@ ShaderGLES3::Version* ShaderGLES3::get_current_version() { } } + + //keep them around during the function CharString code_string; |