In addUnaryMath, check for 'child' being null before dereferencing it.
This commit is contained in:
		
							parent
							
								
									8481679f4d
								
							
						
					
					
						commit
						af5a123652
					
				@ -189,10 +189,10 @@ TIntermTyped* TIntermediate::addIndex(TOperator op, TIntermTyped* base, TIntermT
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
TIntermTyped* TIntermediate::addUnaryMath(TOperator op, TIntermTyped* child, TSourceLoc loc)
 | 
					TIntermTyped* TIntermediate::addUnaryMath(TOperator op, TIntermTyped* child, TSourceLoc loc)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    if (child->getType().getBasicType() == EbtBlock)
 | 
					    if (child == 0)
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (child == 0)
 | 
					    if (child->getType().getBasicType() == EbtBlock)
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    switch (op) {
 | 
					    switch (op) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user