xwayland: Set glamor filter to nearest
glEGLImageTargetTexture2DOES only set the first level. Mesa handles this new texture as incomplete and renders a black screen. We also want to prevent linear filtering. https://bugs.freedesktop.org/show_bug.cgi?id=81800 Signed-off-by: Markus Wick <markus@selfnet.de> Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									5f2e8ac51c
								
							
						
					
					
						commit
						5af2f5b7d2
					
				| 
						 | 
					@ -137,6 +137,9 @@ xwl_glamor_create_pixmap_for_bo(ScreenPtr screen, struct gbm_bo *bo, int depth)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    glGenTextures(1, &xwl_pixmap->texture);
 | 
					    glGenTextures(1, &xwl_pixmap->texture);
 | 
				
			||||||
    glBindTexture(GL_TEXTURE_2D, xwl_pixmap->texture);
 | 
					    glBindTexture(GL_TEXTURE_2D, xwl_pixmap->texture);
 | 
				
			||||||
 | 
					    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
 | 
				
			||||||
 | 
					    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, xwl_pixmap->image);
 | 
					    glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, xwl_pixmap->image);
 | 
				
			||||||
    glBindTexture(GL_TEXTURE_2D, 0);
 | 
					    glBindTexture(GL_TEXTURE_2D, 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue