Skip to content

Commit 73afe69

Browse files
committed
Fix error when compute shaders contain Unicode comment
1 parent 2043023 commit 73afe69

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)