GLSL: Only parse [-]1.#INF in HLSL mode.
This commit is contained in:
		
							parent
							
								
									b1eaf82cc8
								
							
						
					
					
						commit
						6031266244
					
				@ -128,7 +128,7 @@ int TPpContext::lFloatConst(int len, int ch, TPpToken* ppToken)
 | 
				
			|||||||
        ch = getChar();
 | 
					        ch = getChar();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // 1.#INF or -1.#INF
 | 
					        // 1.#INF or -1.#INF
 | 
				
			||||||
        if (ch == '#') {
 | 
					        if (parseContext.intermediate.getSource() == EShSourceHlsl && ch == '#') {
 | 
				
			||||||
            if ((len <  2) ||
 | 
					            if ((len <  2) ||
 | 
				
			||||||
                (len == 2 && ppToken->name[0] != '1') ||
 | 
					                (len == 2 && ppToken->name[0] != '1') ||
 | 
				
			||||||
                (len == 3 && ppToken->name[1] != '1' && !(ppToken->name[0] == '-' || ppToken->name[0] == '+')) ||
 | 
					                (len == 3 && ppToken->name[1] != '1' && !(ppToken->name[0] == '-' || ppToken->name[0] == '+')) ||
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user