mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/texture: add width and height fields
Instead of requiring compositors to call wlr_texture_get_size each time they want to access the texture's size, expose this information as wlr_texture fields.
This commit is contained in:
		
							parent
							
								
									21397e2b4a
								
							
						
					
					
						commit
						06f4c3945d
					
				
					 5 changed files with 32 additions and 31 deletions
				
			
		| 
						 | 
				
			
			@ -82,7 +82,6 @@ struct wlr_gles2_texture {
 | 
			
		|||
 | 
			
		||||
	EGLImageKHR image;
 | 
			
		||||
 | 
			
		||||
	int width, height;
 | 
			
		||||
	bool inverted_y;
 | 
			
		||||
	bool has_alpha;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue