mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Fix style issues
This commit is contained in:
		
							parent
							
								
									1901c3e1b6
								
							
						
					
					
						commit
						073dff63da
					
				
					 2 changed files with 4 additions and 5 deletions
				
			
		| 
						 | 
					@ -231,8 +231,7 @@ bool wlr_egl_query_buffer(struct wl_resource *buf, int attrib, int *value) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EGLImage wlr_egl_create_image(EGLenum target,
 | 
					EGLImage wlr_egl_create_image(EGLenum target,
 | 
				
			||||||
		EGLClientBuffer buffer, const EGLint *attribs)
 | 
							EGLClientBuffer buffer, const EGLint *attribs) {
 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	if (!egl_global || !eglCreateImageKHR) {
 | 
						if (!egl_global || !eglCreateImageKHR) {
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -241,8 +240,7 @@ EGLImage wlr_egl_create_image(EGLenum target,
 | 
				
			||||||
		buffer, attribs);
 | 
							buffer, attribs);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool wlr_egl_destroy_image(EGLImage image)
 | 
					bool wlr_egl_destroy_image(EGLImage image) {
 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	if (!egl_global || !eglDestroyImageKHR) {
 | 
						if (!egl_global || !eglDestroyImageKHR) {
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,8 +22,9 @@ static struct pixel_format external_pixel_format = {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void gles2_texture_gen_texture(struct wlr_texture_state *surface) {
 | 
					static void gles2_texture_gen_texture(struct wlr_texture_state *surface) {
 | 
				
			||||||
	if (surface->tex_id)
 | 
						if (surface->tex_id) {
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	GL_CALL(glGenTextures(1, &surface->tex_id));
 | 
						GL_CALL(glGenTextures(1, &surface->tex_id));
 | 
				
			||||||
	GL_CALL(glBindTexture(GL_TEXTURE_2D, surface->tex_id));
 | 
						GL_CALL(glBindTexture(GL_TEXTURE_2D, surface->tex_id));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue