rust-community/rustbridge

mondrian tutorial doesn't work - graphics issues

hom3mad3 opened this issue · 3 comments

Hello everyone, I ran into a couple of issues while trying the tutorial:

$ cargo run
Running `target/debug/mondpaint`
paint_rectangle: 20, 20, 300, 250
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: DescriptorInit(PixelExport(0, None))', ../src/libcore/result.rs:788

note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Any', ../src/libcore/result.rs:788
error: Process didn't exit successfully: `target/debug/mondpaint` (exit code: 101)

I'm running on Ubuntu 16.04 LTS 64-bit and I already tried switching to OpenGL::V2_1

// Change this to OpenGL::V2_1 if not working.
        let opengl = OpenGL::V1_2;

greetz

although i thought this could be an interesting issue at first, i see that this might be also very limited to older machines only (which i don't recommend for trying this tutorial).

if I understand correctly this is different from #56 but you attribute it to an 'older machine'. The next thing to check would be of you can get any of the piston examples to work, (or find other piston issues that describe the same phenomenon).

The spinning square worked well on linux but not on windows, for me. If you feel like fiddling a bit more it would be interesting to see if this one works for you.

In any case, thanks for reporting and let's see if other people encounter similar problems (and solutions : )

https://github.com/SLMT/rust-ogldev
nave not yet looked into it but it might help...