Fix wl_shm_format passed to wlr_texture_from_pixels
Fixes: 27fba3df43 ("render: use DRM formats in wlr_texture_from_pixels")
			
			
This commit is contained in:
		
							parent
							
								
									c2815fd44d
								
							
						
					
					
						commit
						675bc39658
					
				|  | @ -1,4 +1,5 @@ | |||
| #define _POSIX_C_SOURCE 200112L | ||||
| #include <drm_fourcc.h> | ||||
| #include <GLES2/gl2.h> | ||||
| #include <limits.h> | ||||
| #include <math.h> | ||||
|  | @ -279,7 +280,7 @@ int main(int argc, char *argv[]) { | |||
| 
 | ||||
| 	state.renderer = wlr_backend_get_renderer(wlr); | ||||
| 	state.cat_texture = wlr_texture_from_pixels(state.renderer, | ||||
| 		WL_SHM_FORMAT_ABGR8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, | ||||
| 		DRM_FORMAT_ABGR8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, | ||||
| 		cat_tex.pixel_data); | ||||
| 
 | ||||
| 	if (!wlr_backend_start(wlr)) { | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| #define _POSIX_C_SOURCE 200112L | ||||
| #include <drm_fourcc.h> | ||||
| #include <GLES2/gl2.h> | ||||
| #include <getopt.h> | ||||
| #include <math.h> | ||||
|  | @ -259,7 +260,7 @@ int main(int argc, char *argv[]) { | |||
| 		exit(EXIT_FAILURE); | ||||
| 	} | ||||
| 	state.cat_texture = wlr_texture_from_pixels(state.renderer, | ||||
| 		WL_SHM_FORMAT_ABGR8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, | ||||
| 		DRM_FORMAT_ABGR8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, | ||||
| 		cat_tex.pixel_data); | ||||
| 	if (!state.cat_texture) { | ||||
| 		wlr_log(WLR_ERROR, "Could not start compositor, OOM"); | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| #define _POSIX_C_SOURCE 200112L | ||||
| #include <drm_fourcc.h> | ||||
| #include <GLES2/gl2.h> | ||||
| #include <math.h> | ||||
| #include <stdint.h> | ||||
|  | @ -267,7 +268,7 @@ int main(int argc, char *argv[]) { | |||
| 		exit(EXIT_FAILURE); | ||||
| 	} | ||||
| 	state.cat_texture = wlr_texture_from_pixels(state.renderer, | ||||
| 		WL_SHM_FORMAT_ARGB8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, | ||||
| 		DRM_FORMAT_ARGB8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, | ||||
| 		cat_tex.pixel_data); | ||||
| 	if (!state.cat_texture) { | ||||
| 		wlr_log(WLR_ERROR, "Could not start compositor, OOM"); | ||||
|  |  | |||
|  | @ -1044,7 +1044,7 @@ bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor, | |||
| 	cursor->enabled = false; | ||||
| 	if (pixels != NULL) { | ||||
| 		cursor->texture = wlr_texture_from_pixels(renderer, | ||||
| 			WL_SHM_FORMAT_ARGB8888, stride, width, height, pixels); | ||||
| 			DRM_FORMAT_ARGB8888, stride, width, height, pixels); | ||||
| 		if (cursor->texture == NULL) { | ||||
| 			return false; | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue