Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IDirect3DDevice9* g_pd3dDevice = NULL;
- IDirect3DSurface9* pSurface = NULL;
- g_pd3dDevice->CreateOffscreenPlainSurface(ScreenWidth, ScreenHeight, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &pSurface, NULL);
- HDC ava_dc = NULL;
- pSurface->GetDC(&ava_dc); //crashes here
- cout << "here" << endl;
- return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement