void Cor_CDirect3D9Renderer::Cor_Sync(){HRESULT result = Cor_Direct3DDevice9->Clear(0,0,D3DCLEAR_TARGET,D3DCOLOR_XRGB(255,0,0),1.0f,1); if(FAILED(result)) { return 0; } if(Cor_Direct3DDevice9->BeginScene()) { Cor_Direct3DDevice9->EndScene(); } Cor_Direct3DDevice9->Present(NULL,NULL,NULL,NULL);}
I see nothing wrong with this. but who knows. I also put this in the main loop in WinMain because i found out that things don't have to be places exactly in between begin/endScene you can draw everything as long as you can a function that updates the screen.
Anyways, when i take out the Cor_Sync() it works fine. but yeah, i need that to render so any advice would be helpfull. thanks