Created attachment 19062 [details]
Demo Code - directly from the GtkGlExt examples
I'm working on a little OpenGL app, which doesn't permanently redraw at a fixed framerate (only when animations are running or expose events are triggered).
It works really nicely as long as there's no compositor around. I tested two compositors (metacity's current ony and xcompmgr). As I tested different composite managers, I think the bug is in the driver.
I'll attach sourcecode for a simple demo application (using GtkGLExt - debian package libgtkglext1-dev) which works fine in the non-composited environment but in a composited environment, when I move the window from one workspace to the other, the application doesn't redraw (I'm seeing random-memory artifacts in the window).
I'll attach demo source code.
> dpkg -l xserver-xorg-video-intel metacity xcompmgr
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Beschreibung
ii metacity 1:2.22.0-0ubuntu4 A lightweight GTK2 based Window Manager
ii xcompmgr 1.1.3+git20071107-0ubuntu1 X composition manager
ii xserver-xorg-video-intel 2:2.2.1-1ubuntu13.6 X.Org X server -- Intel i8xx, i9xx display driver
The driver version is a bit old.
Shuang, can you reproduce with the attached program with the latest driver?
You need DRI2 for OpenGL and compositing to work. It's currently in branches, and should be available and stable in our Q4 release.
Fixed with DRI2.
Thanks a lot for fixing this, Eric.
Mass version move, cvs -> git
on Dec 06, 2016 at 00:46:07.
(provided by the Example extension).