emulotor gralloc: fixed HAL_PIXEL_FORMAT_RGB_565
set its glFormat to GL_RGB since GL_RGB565_OES is not supported on the host. This also fixes the wallpaper issue, making it visible. Change-Id: Icf616e70d8f41ca0d01e7cdeb9585107dc8ebc31
This commit is contained in:
committed by
David 'Digit' Turner
parent
23839223b9
commit
33e95e85fd
@@ -139,7 +139,7 @@ static int gralloc_alloc(alloc_device_t* dev,
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RGB_565:
|
||||
bpp = 2;
|
||||
glFormat = GL_RGB565_OES;
|
||||
glFormat = GL_RGB;
|
||||
glType = GL_UNSIGNED_SHORT_5_6_5;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_RGBA_5551:
|
||||
|
||||
Reference in New Issue
Block a user