-
Notifications
You must be signed in to change notification settings - Fork 110
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 compiling 'Hello World' example: NoAvailablePixelFormat #17
Comments
Recently checked that someone had the same issue in amethyst, the problem was solved by disabling multisampling. Is it possible to dissable it in rltk? Thank you. |
I have two computers that I develop on. On one of these - the one without a discrete graphics card - rltk works fine. On the other, with a decent Radeon graphics card, I get the NoAvailablePixelFormat error. Both are Windows 10 machines, updated to the same level. |
One of the most recent commits should fix this. I had another user report it and pushed a quick fix. For some reason, AMD graphics cards only work if you force Glutin to formally request sRGB format (it'll use it anyway!) on framebuffers, or a float rather than byte backing per color channel. |
Yes, it works now! Thank you very much. |
I am currently on rltk = "0.5.12" on Mac Os and I'm still experiencing this issue. Full stacktrace: thread 'main' panicked at 'called Process finished with exit code 101 |
Hello, I'm trying to run the code from the roguelike guide (http://bfnightly.bracketproductions.com/rustbook/chapter_1.html), but unfortunately I'm getting this error: thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: NoAvailablePixelFormat', src\libcore\result.rs:999:5Here's the full backtrace:
stack backtrace:
0: std::sys_common::backtrace::_print
at src\libstd\sys\windows\backtrace/mod.rs:95
at src\libstd\sys\windows\backtrace/mod.rs:82
at src\libstd\sys_common/backtrace.rs:71
1: std::panicking::default_hook::{{closure}}
at src\libstd\sys_common/backtrace.rs:59
at src\libstd/panicking.rs:197
2: std::panicking::default_hook
at src\libstd/panicking.rs:211
3: std::panicking::rust_panic_with_hook
at src\libstd/panicking.rs:474
4: std::panicking::continue_panic_fmt
at src\libstd/panicking.rs:381
5: rust_begin_unwind
at src\libstd/panicking.rs:308
6: core::panicking::panic_fmt
at src\libcore/panicking.rs:85
7: core::result::unwrap_failed
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c\src\libcore/macros.rs:18
8: core::result::Result<T,E>::unwrap
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c\src\libcore/result.rs:800
9: rltk::hal::native::init::init_raw
at C:\Users\Luis.cargo\git\checkouts\rltk_rs-9a03b5b24ea60f66\30ef14b\src\hal\native/init.rs:22
10: rltk::rltk::Rltk::init_raw
at C:\Users\Luis.cargo\git\checkouts\rltk_rs-9a03b5b24ea60f66\30ef14b\src/rltk.rs:41
11: rltk::rltk::Rltk::init_simple8x8
at C:\Users\Luis.cargo\git\checkouts\rltk_rs-9a03b5b24ea60f66\30ef14b\src/rltk.rs:52
12: roguelike_guide::main
at src/main.rs:13
13: std::rt::lang_start::{{closure}}
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c\src\libstd/rt.rs:64
14: std::panicking::try::do_call
at src\libstd/rt.rs:49
at src\libstd/panicking.rs:293
15: _rust_maybe_catch_panic
at src\libpanic_unwind/lib.rs:85
16: std::rt::lang_start_internal
at src\libstd/panicking.rs:272
at src\libstd/panic.rs:394
at src\libstd/rt.rs:48
17: std::rt::lang_start
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c\src\libstd/rt.rs:64
18: main
19: _tmainCRTStartup
20: mainCRTStartup
21: unit_addrs_search
22: unit_addrs_search
error: process didn't exit successfully:
target\debug\roguelike_guide.exe
(exit code: 101)What could be causing this error? I kindly ask for help. Thanks!
The text was updated successfully, but these errors were encountered: