Revert "fb: Don't crash if copy_drawable() returns NULL."
This reverts commit 66a9616d64.
Signed-off-by: Keith Packard <keithp@keithp.com>
Acked-by: Soeren Sandmann <sandmann@daimi.au.dk>
			
			
This commit is contained in:
		
							parent
							
								
									d3e054ac07
								
							
						
					
					
						commit
						0816c5482c
					
				| 
						 | 
					@ -329,11 +329,9 @@ create_bits_picture (PicturePtr pict,
 | 
				
			||||||
    pixman_image_t *image;
 | 
					    pixman_image_t *image;
 | 
				
			||||||
    DrawablePtr drawable;
 | 
					    DrawablePtr drawable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (is_src && pict->pDrawable->type == DRAWABLE_WINDOW) {
 | 
					    if (is_src && pict->pDrawable->type == DRAWABLE_WINDOW)
 | 
				
			||||||
	drawable = copy_drawable (pict->pDrawable);
 | 
						drawable = copy_drawable (pict->pDrawable);
 | 
				
			||||||
	if (!drawable)
 | 
					    else
 | 
				
			||||||
	    return NULL;
 | 
					 | 
				
			||||||
    } else
 | 
					 | 
				
			||||||
	drawable = pict->pDrawable;
 | 
						drawable = pict->pDrawable;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    fbGetDrawable (drawable, bits, stride, bpp, xoff, yoff);
 | 
					    fbGetDrawable (drawable, bits, stride, bpp, xoff, yoff);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue