Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Thread Tools
Old 05-09-11, 02:37 PM   #1
Registered User
Join Date: May 2011
Posts: 1
Default glXDestroyWindow


I was wondering if somebody could clear up my understanding of GLX 1.3 spec.

I have a program that calls glXCreateWindow. For the sake of experiment I added glXDestroyWindow followed by glXCreateWindow again right after the original glXCreateWindow call. Instead of getting a new GLX window I get a BadAlloc error. What do I need to do to the original X window to be able to create a GLX window out of it again?

The spec says this:
"...glXDestroyWindow(Display *dpy, GLXWindow win);
This request deletes the association b etween the resource ID win and the
GLX window. The storage will be freed when it is not current to any client."

It does not say anything about win after this call. Is the original window not valid after glXDestroyWindow is called?

As for BadAlloc, the spec says: "...If there is already a GLXFBConfig associated with win
(as a result of a previous glXCreateWindow call), then a BadAlloc error
is generated." That is understandable, but I do destroy the GLX window, so the FBConfig is supposed to go away.

By the way, everything seems to work as I would expect with Mesa.

lyosha is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 11:22 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.