wxglcanvas c++ fedora not showing

147 Views Asked by At

Currently working on a project using WxWidgets I want to use a wxGLCanvas unfortunately nothing is showing up.

I've installed a lot of packages on my Fedora (21) without any improvement, I've already installed the "standard" opengl package since I've another project using only opengl and it's working.

Does anyone have an idea of which package I need to use ?

Here is a list of all packages I've installed : http://pastebin.com/CNCs47X2

P.S. : It's working on a server under Ubuntu 10.04 . So I don't think it's a code problem. The code : http://pastebin.com/SU5R5HT9

2

There are 2 best solutions below

0
On BEST ANSWER

I just added

glFlush();

before

SwapBuffers();

and it worked ...

3
On

Check whether the wxWidgets OpenGL samples, e.g. samples/opengl/cube work for you. If they don't, you would at least know that the problem is due to something in this machine configuration. If they do, you would know that it's due to a bug in your code.

Without knowing which of the two it is, it's very difficult to help you.