Open akriegman opened 3 years ago
Update: I found the solution. In valora/src/gpu.rs line 251 I changed the number of samples from 16 to 8. According to the OpenGL docs this value can't be over GL_MAX_SAMPLES. I suppose that was 16 on most people's platforms but 8 on mine. We should probably change this line to use the value of GL_MAX_SAMPLES instead of being fixed so that Valora will be cross platform. I'm not sure how to access this value in Rust. I guess it should be available through Glium, but I can't find anything about it in the docs or in the generated gl_bindings.rs
file.
I made a minimal Valora project by adding
valora = "0.2.12"
to the dependencies in a new cargo project, and copying the program from the valora guide intomain.rs
. When I tried to run this I got an empty black window and a steady stream of GL errors. Here is a sample of the output:The output went on like this for a while. I then tried to run the Valora examples and got similar looking output. I also then ran the examples that came with Glium, and those all worked without any problems.
I am using: Ubuntu 20.04 valora = "0.2.12" rustup toolchain:
CPU: AMD Ryzen 7 4000 Running
$ glxinfo | grep OpenGL
gives:Valora seems like a cool project and I would love to get it working! As a side note, does anyone know why my stack traces are so ugly?