WayfireWM / wayfire

A modular and extensible wayland compositor
https://wayfire.org/
MIT License
2.4k stars 178 forks source link

zoom on old hardware freezes Wayfire #1532

Open demostanis opened 2 years ago

demostanis commented 2 years ago

I'm using zoom plugin. When zooming on the desktop, Wayfire freezes (I can only move mouse), and the logs get spammed with:

EE 29-07-22 19:19:18.532 - [GLES2] GL_INVALID_OPERATION in unsupported function called (unsupported extension or deprecated function?)
EE 29-07-22 19:19:18.532 - [src/core/opengl.cpp:42] gles2: function glBlitFramebuffer(x1, y1, x1 + tw, y1 + th, 0, 0, w, h, 0x00004000, interpolation) in wayfire_zoom_screen::<lambda(const wf::framebuffer_base_t&, const wf::framebuffer_base_t&)> line 104: UNKNOWN GL ERROR

From glxinfo:

OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

Note that on some other window managers such as Xfwm, zooming works fine.

This is because used functions aren't supported on OpenGL < 3.0: image

If compatibility for older hardware is a goal, : https://stackoverflow.com/questions/25439137/alternative-for-glblitframebuffer-in-opengl-es-2-0 Otherwise I'll just buy a new computoor I guess.

ammen99 commented 2 years ago

Hi, what kind of hardware do you have that does not support glBlitFramebuffer? In general, Wayfire does not aim to provide compatibility with every device out there, but if your hardware is still common, it might make sense to implement zoom with a shader instead of glBlitFramebuffer

demostanis commented 2 years ago

I'm on a Thinkpad x200, common amongst Librebooters