Christoph Hintermueller wrote:
Hi
What do i have to look for if I do get the following message
GLX Error: maximum number of visuals exceeded
Which lines of code I do have to take a closer look to
What do I have to assume might have been misscode
if getting this messages ???
cu
Christoph
Hi
Solved
It Was the SoOffscreenRenderer or better the functions
SoOffscreenRender::getMaximumResolution();
SoOffscreenRender::getPixelsPerInch(),
These to seem to create a new XVisual everytime they are called
So when calling them in callback functions too they rapidly use up the
number of possible XVisuals without freeing them afterwards.
Solution:
set Offscreen Renderer to RGB_TRANSPARANCY in order to make sure that
the maximum Resolution returned is related to the Render Mode using up
most space. Than query the max resolution and DPI and save both in
member variables :)
cu
Christoph
|