Skip to content

fix(glfw/opengles): fix buf_size calculation error - #6830

Merged
kisvegabor merged 1 commit into
lvgl:masterfrom
JWBverheesen:patch-1
Sep 11, 2024
Merged

kisvegabor merged 1 commit into
lvgl:masterfrom
JWBverheesen:patch-1

Conversation

@JWBverheesen

Copy link
Copy Markdown
Contributor

Line 64 had too much memory allocated for the buffersize. Stride equals w*pixelformat in bytes. Total buffersize is w * h *pixelformat in bytes. This also solved a bug where texture would not be created for resolutions where height is greater than width.

Line 64 had too much memory allocated for the buffersize.
Stride equals w*pixelfmt in bytes. Total buffersize is w * h *pxfmt. This also solved a bug where texture would not be created for resolutions where height is greater than width.
@FASTSHIFT FASTSHIFT changed the title Fix bug in lv_opengles_texture.c fix(glfw/opengles): fix buf_size calculation error Sep 10, 2024

@liamHowatt liamHowatt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much. Great catch.

@kisvegabor
kisvegabor merged commit 010b034 into lvgl:master Sep 11, 2024
@kisvegabor

Copy link
Copy Markdown
Member

Thank you @JWBverheesen! @liamHowatt is working on an OpenGL based renderer (similar to the SDL one). If you are experienced with OpenGL can we tag you for a review when the PR is opened?

@JWBverheesen

Copy link
Copy Markdown
Contributor Author

@kisvegabor sure! I have some experience with openGL, always happy to help. Love the work you guys are doing ;)

@kisvegabor

Copy link
Copy Markdown
Member

Amazing! Thank you 🤗

@liamHowatt

Copy link
Copy Markdown
Contributor

Fyi the PR is here. It will be out of draft soon. #6861

kisvegabor pushed a commit to kisvegabor/lvgl_fork that referenced this pull request Oct 1, 2024
rodb70 pushed a commit to rodb70/lvgl that referenced this pull request Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants