Quellcode durchsuchen

fix: bind CEF paint to wallpaper texture, not FBO id (#639)

RenderHandler::texture() returned getWallpaperFramebuffer(), which is a
framebuffer object name. OnPaint uploaded CEF pixels into the wrong GL
namespace while compositing samples getWallpaperTexture(), so many web
wallpapers stayed black (upstream issue #629).
ghostrunner42 vor 1 Monat
Ursprung
Commit
cc31c51207
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      src/WallpaperEngine/WebBrowser/CEF/RenderHandler.cpp

+ 3 - 1
src/WallpaperEngine/WebBrowser/CEF/RenderHandler.cpp

@@ -24,4 +24,6 @@ int RenderHandler::getWidth () const { return this->m_webdata->getWidth (); }
 
 int RenderHandler::getHeight () const { return this->m_webdata->getHeight (); }
 
-GLuint RenderHandler::texture () const { return this->m_webdata->getWallpaperFramebuffer (); }
+// Must be the color texture attached to the wallpaper FBO — not the FBO name
+// itself. Binding the FBO id as GL_TEXTURE_2D leaves the wallpaper black.
+GLuint RenderHandler::texture () const { return this->m_webdata->getWallpaperTexture (); }