Make sure region size for focused window is divisable by 2
This commit is contained in:
		
							parent
							
								
									55b2813309
								
							
						
					
					
						commit
						8c6e526318
					
				| @ -210,8 +210,8 @@ static int gsr_capture_xcomposite_cuda_start(gsr_capture *cap, AVCodecContext *v | ||||
|     video_codec_context->height = cap_xcomp->texture_size.y; | ||||
| 
 | ||||
|     if(cap_xcomp->params.region_size.x > 0 && cap_xcomp->params.region_size.y) { | ||||
|         video_codec_context->width = cap_xcomp->params.region_size.x; | ||||
|         video_codec_context->height = cap_xcomp->params.region_size.y; | ||||
|         video_codec_context->width = max_int(2, cap_xcomp->params.region_size.x & ~1); | ||||
|         video_codec_context->height = max_int(2, cap_xcomp->params.region_size.y & ~1); | ||||
|     } | ||||
| 
 | ||||
|     cap_xcomp->target_texture_id = gl_create_texture(cap_xcomp, video_codec_context->width, video_codec_context->height); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 dec05eba
						dec05eba