Re: pbuffers
Brian Paul <brian-CdwZJljFklH+2FeEXyspIVaTQe2KTcn/@public.gmane.org>
| Newsgroups | gmane.comp.freedesktop.xserver |
|---|---|
| Organization | Tungsten Graphics, Inc. |
| Message-ID | <[email protected]> |
Michel Dänzer wrote: > On Mon, 2003-12-08 at 18:29, Brian Paul wrote: > >>In terms of render-to-texture for X-on-OpenGL, one deficiency is the >>lack of a way to resize a Pbuffer (to respond to window resizes). > > > Can't the X server get a new pbuffer (and possibly copy the contents of > the old one to it) in that case? Yes, you could probably do that. I'm thinking that if you have a way to tell the allocator that your intention is to resize the pbuffer (vs destroying it and creating a new one) that there may be some opportunity for optimization. For example, if your pbuffer memory must be allocated at a 32-byte pitch, then changing the width by less that 8 pixels (4-byte pixels) might not require allocating new memory at all. -Brian