Hello,
I have problem with SlimDX screenshot: This code
all pointers (i.e. displayMode, g_device3D, surface ) are OK. If I use this code: - a small modification - everrything is OK
Hello,
I have problem with SlimDX screenshot: This code
all pointers (i.e. displayMode, g_device3D, surface ) are OK. If I use this code: - a small modification - everrything is OK
There's really not enough information here, and it looks like you're not doing any error checking either (unless, of course, you've just simplified the code for posting)...
Does CreateOffscreenPlain succeed and give you a valid pointer? Or does it generate an error?
Is g_device3D a valid pointer to an initialized D3D::Device you've created?
all pointers (i.e. displayMode, g_device3D, surface ) are OK. If I use this code: - a small modification - everrything is OK