amethyst / amethyst/bracket-lib

Error: CreationErrors([NoAvailablePixelFormat, NoAvailablePixelFormat]) bug when compiling 0.8.7 in Windows Subsystem for Linux Ubuntu 20.04

未关闭
#302 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
1.7k
派生
126
PR 合并指标
30 天内没有已合并 PR

描述

In WSL2 Ubuntu, for some reason, when I compile and run the following main.rs (basic setup from the book)

```
use bracket_lib::prelude::*;

struct State {}

impl GameState for State {
fn tick( &mut self, ctx: &mut BTerm ) {
ctx.cls();
ctx.print( 1, 1, "Hello, Bracket Terminal!" );
}
}

fn main() -> BError{
let context = BTermBuilder::simple80x50()
.with_title( "Flappy Dragon" )
.build()?;

main_loop( context, State{} )
}
```

with an older Cargo.lock file, it runs just fine without errors. However, with the latest version of Bracket-lib 0.8.7. I get the following error:

> Error: CreationErrors([NoAvailablePixelFormat, NoAvailablePixelFormat])

It is only when I substitute any new project with an older the Cargo.lock file that book code works again. Can you please look into this problem as anyone buying the book lately and walking through the examples, may be running into this issue?

I only encountered this because I had some old compiled versions lying around from my first walk through of the text. Hope this helps others out there! I will continue copying over my lock file until this issue is resolved.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。