Bitmap: Ensure cloned bitmap is non-mega
This commit is contained in:
		
							parent
							
								
									3359451f3a
								
							
						
					
					
						commit
						28ff5cd33c
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -266,6 +266,8 @@ Bitmap::Bitmap(int width, int height)
 | 
			
		|||
 | 
			
		||||
Bitmap::Bitmap(const Bitmap &other)
 | 
			
		||||
{
 | 
			
		||||
	other.ensureNonMega();
 | 
			
		||||
 | 
			
		||||
	p = new BitmapPrivate;
 | 
			
		||||
 | 
			
		||||
	p->gl = shState->texPool().request(other.width(), other.height());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue