diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2026-01-03 15:13:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-03 15:13:01 +0100 |
| commit | fab3370254691cdcd67f474405217ff1529e25a4 (patch) | |
| tree | 852810b3c8c037c332f4e05ba83397471e763df6 /src/plugins/PluginAPI.cpp | |
| parent | ee67278038b5b6597172b2a3ee9d57f6ad0eafc7 (diff) | |
renderer: minor framebuffer and renderbuffer changes (#12831)
* framebuffer: dont release if format or size changes
we dont have to release and recreate both the texture and framebuffer if
size or format changes, we can just bind the texture and call glTexImage2D
with the new format and size.
* framebuffer: set the alloced viewport size
if monitor size mismatch with the allocated m_size its going to set a
mismatched viewport and cause rendering issues. and if they are
mismatching there is a missing alloc call.
* renderbuffer: cleanup unneded binds
the renderbuffer is attached to the fbo and trying to rebind it in
bind() is causing unnecessery state changes, just bind the fbo.
add safeguard in the destructor, the constructor can return early on
failure and leave m_rbo empty or m_image as EGL_NO_IMAGE_KHR.
Diffstat (limited to 'src/plugins/PluginAPI.cpp')
0 files changed, 0 insertions, 0 deletions
