mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Fix error when compute shaders contain Unicode comment
This commit is contained in:
parent
20430236e7
commit
73afe696d2
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ Vector<uint8_t> compile_glslang_shader(RenderingDeviceCommons::ShaderStage p_sta
|
|||
glslang::EShTargetLanguageVersion TargetVersion = (glslang::EShTargetLanguageVersion)p_spirv_version;
|
||||
|
||||
glslang::TShader shader(stages[p_stage]);
|
||||
CharString cs = p_source_code.ascii();
|
||||
CharString cs = p_source_code.utf8();
|
||||
const char *cs_strings = cs.get_data();
|
||||
std::string preamble = "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue