mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] egl: fix non-dma RGB24 import path
This commit is contained in:
parent
584de4133f
commit
0ce4c34c37
@ -148,7 +148,7 @@ static bool egl_filter24bitSetup(EGL_Filter * filter,
|
|||||||
this->desktopHeight == desktopHeight)
|
this->desktopHeight == desktopHeight)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (!egl_framebufferSetup(this->fb, pixFmt, desktopWidth, desktopHeight))
|
if (!egl_framebufferSetup(this->fb, EGL_PF_BGRA, desktopWidth, desktopHeight))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
this->format = pixFmt;
|
this->format = pixFmt;
|
||||||
|
@ -81,6 +81,7 @@ bool egl_texUtilGetFormat(const EGL_TexSetup * setup, EGL_TexFormat * fmt)
|
|||||||
fmt->intFormat = GL_BGRA_EXT;
|
fmt->intFormat = GL_BGRA_EXT;
|
||||||
fmt->dataType = GL_UNSIGNED_BYTE;
|
fmt->dataType = GL_UNSIGNED_BYTE;
|
||||||
fmt->fourcc = DRM_FORMAT_ARGB8888;
|
fmt->fourcc = DRM_FORMAT_ARGB8888;
|
||||||
|
fmt->stride = fmt->pitch / 4;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user