PDA

View Full Version : Textures and Rendering to a Bitmap



02-24-2000, 07:05 AM
For some reason textures are not used when I render to a bitmap (in memory). When I draw to a screen DC the textures appear as they should.

Is there some limitation/trick I'm unaware of?

Thanks in advance.

Eric
02-24-2000, 08:52 AM
Did you recreate your textures in your offscreen rendering context (I mean glGenTextures, glBindTextures, glTexImage2D) ????

As your offscreen rendering context is a new one, the textures you binded for your screen rendering context are not part of this new rendering context !

Tell me if it doesn't work !

Eric

02-28-2000, 05:54 AM
Worked like a charm! Thanks man!