@@ -496,15 +496,15 @@ const DebugRenderer = struct {
496
496
_ : * DebugRenderer ,
497
497
_ : * const [3 ]zphy.Real ,
498
498
_ : * const [3 ]zphy.Real ,
499
- _ : * const zphy.DebugRenderer.Color ,
499
+ _ : zphy.DebugRenderer.Color ,
500
500
) callconv (.C ) void {}
501
501
502
502
fn drawTriangle (
503
503
_ : * DebugRenderer ,
504
504
_ : * const [3 ]zphy.Real ,
505
505
_ : * const [3 ]zphy.Real ,
506
506
_ : * const [3 ]zphy.Real ,
507
- _ : * const zphy.DebugRenderer.Color ,
507
+ _ : zphy.DebugRenderer.Color ,
508
508
) callconv (.C ) void {}
509
509
510
510
fn createTriangleBatch (_ : * DebugRenderer , _ : [* ]zphy.DebugRenderer.Triangle , _ : u32 ) callconv (.C ) * anyopaque {
@@ -1068,15 +1068,15 @@ fn update(demo: *DemoState) void {
1068
1068
1069
1069
if (window .getMouseButton (.left ) == .press ) {
1070
1070
if (demo .mouse .captured ) {
1071
- window .setInputMode (.cursor , zglfw .Cursor .Mode .normal );
1072
- window .setInputMode (.raw_mouse_motion , false );
1071
+ window .setInputMode (.cursor , zglfw .Cursor .Mode .normal ) catch unreachable ;
1072
+ window .setInputMode (.raw_mouse_motion , false ) catch unreachable ;
1073
1073
}
1074
1074
demo .mouse .captured = false ;
1075
1075
}
1076
1076
if (window .getMouseButton (.right ) == .press ) {
1077
1077
if (! demo .mouse .captured ) {
1078
- window .setInputMode (.cursor , zglfw .Cursor .Mode .disabled );
1079
- window .setInputMode (.raw_mouse_motion , true );
1078
+ window .setInputMode (.cursor , zglfw .Cursor .Mode .disabled ) catch unreachable ;
1079
+ window .setInputMode (.raw_mouse_motion , true ) catch unreachable ;
1080
1080
}
1081
1081
demo .mouse .captured = true ;
1082
1082
}
0 commit comments