"mathieu" <mathieu.malaterre@[EMAIL PROTECTED]
> wrote in message
news:6ed1cefc-393a-4846-8217-0632f447ed34@[EMAIL PROTECTED]
> Hi there,
>
> I have a program that open *one* X11 'Display' and then within a
> loop I create a X11 'Window' & an associated GLXContext.
> It works fine for the first ~450 windows but simply seg fault on the
> glXMakeCurrent call with:
>
> ...
> The error was 'GLXBadDrawable'.
> (Details: serial 36264 error_code 158 request_code 143 minor_code
> 26)
> ...
>
> Is there some kind of maximum number of glx context I can open
> within the same Display ? If so how can I request this max number ?
>
> Thanks
> -Mathieu
There's always some maximum limit of windows imposed by your windowing
system.
Nope, can't ask fer it. A windowing system limit depends (in x11) on the
x-server's limits,
and your app isn't the only user of X11, so theres no one per-app limit. X
server probably out of memory.
It's like asking if there's a limit on how much memory you can allocate.
There is, but the only way to know is
to get memory until it fails...
jbw


|