Fix basic_window_web, where a bool was passed to an int
This commit is contained in:
parent
5bbafa4f86
commit
a7f626993c
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ pub fn main() anyerror!void {
|
||||||
defer rl.closeWindow(); // Close window and OpenGL context
|
defer rl.closeWindow(); // Close window and OpenGL context
|
||||||
|
|
||||||
if (builtin.os.tag == .emscripten) {
|
if (builtin.os.tag == .emscripten) {
|
||||||
c.emscripten_set_main_loop(@ptrCast(&updateDrawFrame), 0, true);
|
c.emscripten_set_main_loop(@ptrCast(&updateDrawFrame), 0, 1);
|
||||||
} else {
|
} else {
|
||||||
rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second
|
rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue