Skip to content

Commit

Permalink
[client] egl: fix non-dma RGB24 import path
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Nov 18, 2023
1 parent 584de41 commit 0ce4c34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/renderers/EGL/filter_24bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static bool egl_filter24bitSetup(EGL_Filter * filter,
this->desktopHeight == desktopHeight)
return true;

if (!egl_framebufferSetup(this->fb, pixFmt, desktopWidth, desktopHeight))
if (!egl_framebufferSetup(this->fb, EGL_PF_BGRA, desktopWidth, desktopHeight))
return false;

this->format = pixFmt;
Expand Down
1 change: 1 addition & 0 deletions client/renderers/EGL/texture_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ bool egl_texUtilGetFormat(const EGL_TexSetup * setup, EGL_TexFormat * fmt)
fmt->intFormat = GL_BGRA_EXT;
fmt->dataType = GL_UNSIGNED_BYTE;
fmt->fourcc = DRM_FORMAT_ARGB8888;
fmt->stride = fmt->pitch / 4;
break;

default:
Expand Down

0 comments on commit 0ce4c34

Please sign in to comment.