Fixed creating the rendering context on a specific device