Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
luisvgs opened this issue May 8, 2020 · 4 comments · Fixed by #126
Closed
Labels
bug Something isn't working

Comments

@luisvgs
Copy link

luisvgs commented May 8, 2020

Hello, I'm trying to use coffee for learning purposes but I'm unfortunately not able to run the example provided by the documentation. The compiler complains with the following error:

Error: WindowCreation("Couldn\'t find any pixel format that matches the criteria.")
error: process didn't exit successfully:
`C:\Users\_\Desktop\Programming\Rust_Projects\target\debug\coffe_sketch.exe` (exit code: 1)      

This is how my Cargo.toml file looks like:

[package]
name = "coffe_sketch"
version = "0.1.0"
authors = ["_"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
coffee = { version = "0.4", features = ["opengl"] }

Further details:

OS: Windows 10 x64
rustc 1.43.0-nightly (58b834344 2020-02-05)  

How can I solve this issue? Any help and guidance would be truly appreciated. Thanks in advance.

@hecrj
Copy link
Owner

hecrj commented May 10, 2020

Do any of the other graphics backends work for you?

@hecrj hecrj added the bug Something isn't working label May 10, 2020
@luisvgs
Copy link
Author

luisvgs commented May 10, 2020

Do any of the other graphics backends work for you?

@hecrj hi! I tried with Vulkan and dx11, but I'm not able to compile with any of both features.

When I use either of both, the error is the following:

thread 'main' panicked at 'assertion failed: image::Usage::COLOR_ATTACHMENT.contains(config.image_usage)', C:\Users\Luis\.cargo\registry\src\git.luolix.top-1ecc6299db9ec823\gfx-backend-dx11-0.5.0\src\lib.rs:819:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `C:\Users\Luis\Desktop\Programming\Rust_Projects\target\debug\coffe_sketch.exe` (exit code: 101)  

I'm confused. I have no clue of what can possible be causing this behavior.

@hecrj
Copy link
Owner

hecrj commented May 10, 2020

Oh, that is probably related to #125.

@luisvgs
Copy link
Author

luisvgs commented May 10, 2020

@hecrj I was able to compile the examples and solve the problem by switching to vulkan backend after deleting COPY_DST. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants