Re: [Plib-users] Trouble when changing resolution
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2003-04-29 21:09:04
|
jeanfrancois.chalbos wrote: > I have a problem when I change my program's resolution. > ==> TEXTURES DISAPPEARED > > I used glut and ssg (with 3ds import objects). > > It's happen when I destroy the current window > and create another one. If you delete the current rendering context, then all existing textures will be lost because OpenGL deletes them. SSG doesn't know you did this - so it presumes the textures are still there. The only thing I can think of is to ensure that textures are shared between graphical contexts (I think that's the default with GLUT) - and to make sure to open the new rendering context BEFORE you delete the old one. I've never actually tried that - but in theory it should work. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |