Would there be any risk in passing a d3d device as a const reference to a function?
To be specific:
LPDIRECTDDEVICE9 myDev is basically a pointer: *IDIRECT3DDEVICE9
A function used the device for d3d functions as parameter, but doesn't alter the d3d device itself, thats why I think it should be possible.
It compiles and runs, but just curious if it's 'OK'.
bool CreateTextures(const LPDIRECTDDEVICE9 &pd3ddev)