GLMeta: Disable blending when blitting via quad draw
This commit is contained in:
		
							parent
							
								
									27b7815f52
								
							
						
					
					
						commit
						c1d627e0ae
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -193,9 +193,11 @@ void blitRectangle(const IntRect &src, const IntRect &dst, bool smooth)
 | 
				
			||||||
		if (smooth)
 | 
							if (smooth)
 | 
				
			||||||
			TEX::setSmooth(true);
 | 
								TEX::setSmooth(true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							glState.blend.pushSet(false);
 | 
				
			||||||
		Quad &quad = shState->gpQuad();
 | 
							Quad &quad = shState->gpQuad();
 | 
				
			||||||
		quad.setTexPosRect(src, dst);
 | 
							quad.setTexPosRect(src, dst);
 | 
				
			||||||
		quad.draw();
 | 
							quad.draw();
 | 
				
			||||||
 | 
							glState.blend.pop();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (smooth)
 | 
							if (smooth)
 | 
				
			||||||
			TEX::setSmooth(false);
 | 
								TEX::setSmooth(false);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue