Comment 11 for bug 1024208

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

Thank you for the bug report. I have fixed this bug in the GL version and the branches above should fix the 3d windows problems in GLES except of the clipping. The 3d clipping is performed in viewing space (modelview matrix) therefore in GLES where the fixed function pipeline calls for clipping planes etc are ignored, we should set the clipping planes in the vertex shader. Compiz is designed to use some generic shaders for drawing that just do what the fixed function pipeline would do atm. The solution is to unload that shader program at the beginning of the 3d windows plugin drawing call, load another shader that performs the clipping in viewing space and when the drawing is done unload that shader, load the default and continue. I will fix it when there's some time.