if (GetKeyState(VK_RCONTROL) & 0xFF00){
// Begin Scene Rendering
m_pD3DDevice->BeginScene();
gSprite->Begin(0);
gSprite->Draw(gTexture, NULL, ¢er, &pos, D3DCOLOR_XRGB(255, 255, 255));gSprite->End();
// End Scene Rendering
m_pD3DDevice->EndScene();
}
Everything is initialized and stored fine. However, the problem lies when I resize/Change my window device -- go into fullscreen mode, for example.
If I never hit the Ctrl key, it's fine, the screen will reboot itself and let the application continue, over and over again.
But, once I hit Ctrl for the first time, and the bitmap is displayed (which I can display over and over again since it goes away after releasing the key), after I switch modes it crashes.
What's the deal?
Jason












