nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   glXDestroyWindow (http://www.nvnews.net/vbulletin/showthread.php?t=162354)

lyosha 05-09-11 02:37 PM

glXDestroyWindow
 
Hello,

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.

Thanks.


All times are GMT -5. The time now is 08:25 PM.

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