compiz: Compiz prevents GLUT programs drawing window frame
Alexander Smith
AIS523 at bham.ac.uk
Fri Jan 25 16:06:44 UTC 2008
Package: compiz
Version: 1:0.6.0+git20071008-0ubuntu1.1
Severity: normal
This package seems to conflict with GLUT in some way. A GLUT sample
program (such as the following) works fine with Compiz turned off, but
when Copmiz is turned on, the GLUT program will draw the contents of
the window but not its frame, and will only do that drawing once (if
the window is later covered up, it won't redraw), and likewise once
the GLUT program exits the area of the screen behind it won't be
redrawn. This makes GLUT programs unusable when Compiz is running. Web
searches suggest that other people have had this problem before, but
nobody reported it; it appears to be an upstream bug.
/* Command-line: gcc test1.c -L/usr/X11R6/lib -lm -lX11 -lGL -lglut -lXi */
#include <GL/glut.h>
void cb_paint()
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
{
glVertex2f(-0.5, -0.5);
glVertex2f(-0.5, 0.5);
glVertex2f( 0.5, 0.5);
glVertex2f( 0.5, -0.5);
}
glEnd();
glFlush();
}
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutCreateWindow("simple");
glutFullScreen();
glutDisplayFunc(cb_paint);
glutMainLoop();
}
-- System Information:
Debian Release: lenny/sid
APT prefers gutsy-updates
APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy'), (500, 'feisty-backports')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-14-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages compiz depends on:
ii compiz-co 1:0.6.0+git20071008-0ubuntu1.1 OpenGL window and compositing mana
ii compiz-fu 0.5.2+git20070928-0ubuntu1 Collection of extra plugins from O
ii compiz-fu 0.5.2+git20070928-0ubuntu2 Collection of plugins from OpenCom
ii compiz-gn 1:0.6.0+git20071008-0ubuntu1.1 OpenGL window and compositing mana
ii compiz-pl 1:0.6.0+git20071008-0ubuntu1.1 OpenGL window and compositing mana
ii libcompiz 0.5.2+git20070919-0ubuntu3 Settings library for plugins - Ope
compiz recommends no packages.
-- no debconf information
More information about the ubuntu-users
mailing list