mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	release shm buffer after uploading
This commit is contained in:
		
							parent
							
								
									3ce1341e3c
								
							
						
					
					
						commit
						87fe13a9fa
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -55,6 +55,7 @@ static void surface_commit(struct wl_client *client,
 | 
				
			||||||
			} else {
 | 
								} else {
 | 
				
			||||||
				uint32_t format = wl_shm_buffer_get_format(buffer);
 | 
									uint32_t format = wl_shm_buffer_get_format(buffer);
 | 
				
			||||||
				wlr_texture_upload_shm(surface->texture, format, buffer);
 | 
									wlr_texture_upload_shm(surface->texture, format, buffer);
 | 
				
			||||||
 | 
									wl_resource_queue_event(surface->pending_buffer, WL_BUFFER_RELEASE);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue