Closed JimmyHypi closed 4 years ago
It's weird because cargo run
seems to work fine here. Does the bug happens in your own project only?
Hi. In my project, this problem is happened. Maybe, it happens bellow step.
So apparently as of right now, there's no "opengl()" (in main.rs) function available, I tried to downgrade the version of the crate in the "Cargo.toml" file to what it is in your dependencies, but there was no way to make it work. So what I did is to copy and paste the Cargo.lock file in the repository and keep the "opengl(opengl)" function and it worked, but I haven't checked the differences between the two lock files to be honest, that's really weird.
So apparently as of right now, there's no "opengl()" (in main.rs) function available, I tried to downgrade the version of the crate in the "Cargo.toml" file to what it is in your dependencies, but there was no way to make it work. So what I did is to copy and paste the Cargo.lock file in the repository and keep the "opengl(opengl)" function and it worked, but I haven't checked the differences between the two lock files to be honest, that's really weird.
Try changing your code to this:
let settings = WindowSettings::new("Sudoku", [512; 2])
.graphics_api(opengl)
.exit_on_esc(true);
Hi, in the Sudoku tutorial, when drawing a character from the keyboard weird things happen: Instead of writing different characters in different cells the graphics engine concatenates the different images of the characters taken from the glyphs and prints them all in every cell. This is what happens. Empty Grid with selected cell:
Type "1" on the keyboard:
Select another cell:
Type "3" on the keyboard:
Repeat:
And again:
Looks like there's a buffer somewhere not emptying? Does anybody have an idea of what it can be? The code is the same as in the tutorial. Appreciate any help, thanks.