Use a dummy GL context if one is not available when GetDeviceCaps is called. Remove the compiler warnings introduced in the last DXTn patch.