Explorar o código

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 hai 1 mes
pai
achega
cc31c51207
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 (); }