hecrj / coffee

An opinionated 2D game engine for Rust
https://docs.rs/coffee
MIT License
1.08k stars 55 forks source link

Couldn't find any pixel format that matches the criteria on MacOs #138

Open buxx opened 4 years ago

buxx commented 4 years ago

Hello,

I'm trying to build my project (which use coffee 0.4.1) on MacOS but i got the following error:

Error: WindowCreation("Couldn\'t find any pixel format that matches the criteria.")

I saw this issue and tried to build with vulkan:

diff --git a/Cargo.toml b/Cargo.toml
index 0ec07b7..15f8dcc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,7 @@ authors = ["Bastien Sevajol <bastien.sevajol@algoo.fr>"]
 edition = "2018"

 [dependencies]
-coffee = { version = "0.4.1", features = ["opengl"] }
+coffee = { version = "0.4.1", features = ["vulkan"] }
 rand = "0.6"
 pickledb = "0.4.0"
 websocket = "0.24.0"

But, following error happens on build:

VirtualBox_macOS_10_08_2020_21_53_00

What is possible to do ?