0.6.1 bug if using only dx10 to compile samples
Posted: Mon Jul 21, 2008 16:10
Code: Select all
#ifdef CEGUI_SAMPLES_USE_DIRECTX_9
if (id.find("Official Direct3D 9") != id.npos)
DeviceReset_Direct3D9(hWnd, renderer);
#endif
#ifdef CEGUI_SAMPLES_USE_DIRECTX_10
else if (id.find("Official Direct3D 10") != id.npos)
DeviceReset_Direct3D10(hWnd, renderer);
#endif
#ifdef CEGUI_SAMPLES_USE_DIRECTX_8
else if (id.find("Official Direct3D 8.1") != id.npos)
DeviceReset_Direct3D81(hWnd, renderer);
#endif
if you only have CEGUI_SAMPLES_USE_DIRECTX_10 defined as i do, you get a error C2181: illegal else without matching if
so remove the elses