Commit d9652cd
committed
Use source.c_str() for NSString creation
Pass the underlying C string to +[NSString stringWithUTF8String:] instead of the std::string object. This fixes an incorrect/ambiguous conversion when creating the Metal shader source NSString in the renderer.
Signed-off-by: Vlad (Kuzmin) Erium <libalias@gmail.com>
Signed-off-by: Vlad <shaamaan@gmail.com>1 parent b6b1aad commit d9652cd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | | - | |
| 1085 | + | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| |||
0 commit comments