View Full Version : Texture not loaded
Do I have to load texture when the program starts (in OnCreate())? My program needs to determine which texture to load after it starts. Texture isn't loaded if I don't load it in OnCreate().
11-22-2004, 01:48 AM
It does not matter when you load your texture. The limitation is that you can only do something with OpenGL (like texture loading) after you call wglMakeCurrent, i.e. after initialization. So you can even load your texture from OnDestroy...
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.