use software vertex processing for example-code

There's no good reason for not doing this, and it allows
the example to run on older computers.
This commit is contained in:
Erik Faye-Lund 2010-01-02 17:00:52 +01:00
parent 892ac2f0fb
commit ae37108d09

View File

@ -51,7 +51,7 @@ int main(int argc, char *argv[])
// create the device
IDirect3DDevice9 *device = NULL;
static D3DPRESENT_PARAMETERS present_parameters = {width, height, D3DFMT_X8R8G8B8, 3, D3DMULTISAMPLE_NONE, 0, D3DSWAPEFFECT_DISCARD, 0, WINDOWED, 1, D3DFMT_D24S8, 0, WINDOWED ? 0 : D3DPRESENT_RATE_DEFAULT, 0};
if (D3D_OK != d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &present_parameters, &device))
if (D3D_OK != d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device))
throw std::string("could not create device. you computer SUCKS!");
// init BASS