Skip to content

Commit 769505f

Browse files
committed
Merge pull request #111703 from timothyqiu/glsl-utf8
Fix error when compute shaders contain Unicode comment
2 parents 94818a5 + 73afe69 commit 769505f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/glslang/register_types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Vector<uint8_t> compile_glslang_shader(RenderingDeviceCommons::ShaderStage p_sta
5858
glslang::EShTargetLanguageVersion TargetVersion = (glslang::EShTargetLanguageVersion)p_spirv_version;
5959

6060
glslang::TShader shader(stages[p_stage]);
61-
CharString cs = p_source_code.ascii();
61+
CharString cs = p_source_code.utf8();
6262
const char *cs_strings = cs.get_data();
6363
std::string preamble = "";
6464

0 commit comments

Comments
 (0)