mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	-Fixed shader commets, /* */ works well and crash is solved, fixes #1711
This commit is contained in:
		
							parent
							
								
									3203a03414
								
							
						
					
					
						commit
						972af0b0cb
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -118,13 +118,17 @@ ShaderLanguage::Token ShaderLanguage::read_token(const CharType* p_text,int p_le | |||
| 
 | ||||
| 
 | ||||
| 					while(true) { | ||||
| 						if (GETCHAR(r_chars+1)=='0') | ||||
| 						if (GETCHAR(r_chars+1)==0) { | ||||
| 							r_chars+=1; | ||||
| 							break; | ||||
| 						if (GETCHAR(r_chars+1)=='*' && GETCHAR(r_chars+2)=='/') | ||||
| 						} if (GETCHAR(r_chars+1)=='*' && GETCHAR(r_chars+2)=='/') { | ||||
| 							r_chars+=3; | ||||
| 							break; | ||||
| 						if (GETCHAR(r_chars+1)=='\n') | ||||
| 						} if (GETCHAR(r_chars+1)=='\n') { | ||||
| 							r_line++; | ||||
| 							r_chars++; | ||||
| 						} | ||||
| 
 | ||||
| 						r_chars++; | ||||
| 					} | ||||
| 
 | ||||
| 					return Token(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky