-Fixed shader commets, /* */ works well and crash is solved, fixes #1711
This commit is contained in:
parent
3203a03414
commit
972af0b0cb
@ -118,13 +118,17 @@ ShaderLanguage::Token ShaderLanguage::read_token(const CharType* p_text,int p_le
|
|||||||
|
|
||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
if (GETCHAR(r_chars+1)=='0')
|
if (GETCHAR(r_chars+1)==0) {
|
||||||
|
r_chars+=1;
|
||||||
break;
|
break;
|
||||||
if (GETCHAR(r_chars+1)=='*' && GETCHAR(r_chars+2)=='/')
|
} if (GETCHAR(r_chars+1)=='*' && GETCHAR(r_chars+2)=='/') {
|
||||||
|
r_chars+=3;
|
||||||
break;
|
break;
|
||||||
if (GETCHAR(r_chars+1)=='\n')
|
} if (GETCHAR(r_chars+1)=='\n') {
|
||||||
r_line++;
|
r_line++;
|
||||||
r_chars++;
|
}
|
||||||
|
|
||||||
|
r_chars++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Token();
|
return Token();
|
||||||
|
Loading…
Reference in New Issue
Block a user