mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	render/gles2: assert texture comes from the same renderer
Rendering a wlr_texture with a different wlr_renderer is invalid. Add an assert to make sure this doesn't happen.
This commit is contained in:
		
							parent
							
								
									e7f68ba081
								
							
						
					
					
						commit
						69d4cf19b5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -253,6 +253,7 @@ static bool gles2_render_subtexture_with_matrix( | ||||||
| 		gles2_get_renderer_in_context(wlr_renderer); | 		gles2_get_renderer_in_context(wlr_renderer); | ||||||
| 	struct wlr_gles2_texture *texture = | 	struct wlr_gles2_texture *texture = | ||||||
| 		gles2_get_texture(wlr_texture); | 		gles2_get_texture(wlr_texture); | ||||||
|  | 	assert(texture->renderer == renderer); | ||||||
| 
 | 
 | ||||||
| 	struct wlr_gles2_tex_shader *shader = NULL; | 	struct wlr_gles2_tex_shader *shader = NULL; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Ser
						Simon Ser