xwayland/glamor/gbm: Only use modifier gbm API if explicit
If we're using implicit modifiers, we'll pass NULL and zero modifiers. Lets just use the legacy API directly instead. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
		
							parent
							
								
									21b3dad238
								
							
						
					
					
						commit
						08b0ea09de
					
				|  | @ -293,8 +293,10 @@ xwl_glamor_gbm_create_pixmap(ScreenPtr screen, | ||||||
|             uint64_t *modifiers = NULL; |             uint64_t *modifiers = NULL; | ||||||
| 
 | 
 | ||||||
|             xwl_glamor_get_modifiers(screen, format, &num_modifiers, &modifiers); |             xwl_glamor_get_modifiers(screen, format, &num_modifiers, &modifiers); | ||||||
|             bo = gbm_bo_create_with_modifiers(xwl_gbm->gbm, width, height, | 
 | ||||||
|                                               format, modifiers, num_modifiers); |             if (num_modifiers > 0) | ||||||
|  |                 bo = gbm_bo_create_with_modifiers(xwl_gbm->gbm, width, height, | ||||||
|  |                                                   format, modifiers, num_modifiers); | ||||||
|             free(modifiers); |             free(modifiers); | ||||||
|         } |         } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue