cloudhead / rx

👾 Modern and minimalist pixel editor
https://discord.gg/xHggPjfsS9
GNU General Public License v3.0
3.09k stars 109 forks source link

OpenGL 3.3 support #50

Closed cloudhead closed 4 years ago

cloudhead commented 4 years ago

To turn on the opengl backend, build with cargo build --release --features compatibility

neauoire commented 4 years ago

The current version gives me:

[2020-01-06T14:20:13Z INFO  rx] framebuffer size: 1280x720
[2020-01-06T14:20:13Z INFO  rx] hidpi factor: 2
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:378:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
cloudhead commented 4 years ago

@neauoire did you try https://github.com/cloudhead/rx/issues/42#issuecomment-570928958 ?

This output suggests you aren’t running with —feature compatibility

cloudhead commented 4 years ago

You can use ‘cargo run’ directly with those flags to test things out.

neauoire commented 4 years ago

Screenshot from 2020-01-06 14-13-45@2x

I think I'm doing this right, am I missing a step?

cloudhead commented 4 years ago

@neauoire ah yes it's a bit confusing but cargo install doesn't care what features you used to build (it'll run build in the background), try cargo install --force --locked --path . --features compatibility. If you're just testing things out you can also use cargo run --release --features compatibility.