diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-22 14:40:53 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-22 14:40:53 +0200 |
| commit | 0653c41f12a6e5bed35723b401c5b4d9505059bf (patch) | |
| tree | 5a01db514c9c9e9d841e1252fe99d6e1016e3d53 /opengl-bindings/src/misc.rs | |
| parent | 6ccfd7833272638953a2b3548f30ec0a6f3149de (diff) | |
refactor(opengl-bindings): fix clippy lints
Diffstat (limited to 'opengl-bindings/src/misc.rs')
| -rw-r--r-- | opengl-bindings/src/misc.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl-bindings/src/misc.rs b/opengl-bindings/src/misc.rs index 9ad8c4a..8440de0 100644 --- a/opengl-bindings/src/misc.rs +++ b/opengl-bindings/src/misc.rs @@ -55,6 +55,10 @@ pub fn set_viewport( Ok(()) } +/// Returns the current viewport position & size. +/// +/// # Panics +/// This function will panic if either the viewport position or viewport size is negative. #[tracing::instrument(skip(current_context))] pub fn get_viewport( current_context: &MaybeCurrentContextWithFns, |
