• Advertisement
Sign in to follow this  

trouble with textures in multiple windows

This topic is 4840 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i'm having trouble with displaying my textures in multiple windows. I set the context to be rendered on before i want to draw on each window. The problem comes in when i'm trying to draw textures. The first window i'm drawing on renders the textures fine, but the other two are drawing white boxes like it's not recognizing the generated texture number. Do I need to generate the textures for each window I plan on displaying the textures in? If not, any suggestions as to how to solve this problem? thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
If by 'multiple windows' , you mean more than one independant rendering context (not multiple viewports in the same actual window), textures will not be shared between them.

If you're using Win32, you could try using wglShareLists to share textures (and other things!) between multiple windows. You just need to give it two rendering context handles.

Hope this helps.

Regards,

Hew T.

Share this post


Link to post
Share on other sites
Just to expand on what Hew T aid: I found that the order of the parameters when calling wglShareLists is important. If you get them the wrong way round the first time, just swap them.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement