Hi,

I just installed wxwidgets and opengl on Ubuntu 10.10, and tried to compile the opengl/wxwidgets example taken from the wxwidgets-wiki: WxGLCanvas

My compilation line is
Code:
gcc my_program.cpp `wx-config --cxxflags --libs --gl-libs` -lglut
This seems to work, and produces the executable file a.out

When I try to run a.out, I get the following error:
Code:
The program 'a.out' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 319 error_code 9 request_code 137 minor_code 8)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Any ideas? Unfortunately I don't know how to do a --sync or backtrace...