325: Create vulkan instance on windows r=kvark a=danaugrs



Co-authored-by: Daniel Salvadori <danaugrs@gmail.com>
This commit is contained in:
bors[bot]andDaniel Salvadori authored and GitHub committed 2019-09-03 21:33:33 +00:00
commit a2956c0d42
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ impl Instance {
pub(crate) fn new(name: &str, version: u32) -> Self {
Instance {
//TODO: reconsider once `create` returns a `Result`
vulkan: if cfg!(all(unix, not(target_os = "ios"), not(target_os = "macos"))) {
vulkan: if cfg!(all(any(unix, windows), not(target_os = "ios"), not(target_os = "macos"))) {
Some(gfx_backend_vulkan::Instance::create(name, version))
} else {
None