Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev committed Jan 22, 2025
1 parent e78ea1b commit 6983b26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ where
attributes: &ContextAttributes,
) -> Result<Self::ContextDescriptor, Error>;

/// Creates a new OpenGL context.
/// Creates a new OpenGL context and makes it current.
///
/// The context initially has no surface attached. Until a surface is bound to it, rendering
/// commands will fail or have no effect.
Expand All @@ -64,6 +64,8 @@ where
) -> Result<Self::Context, Error>;

/// Wraps a native context object in an OpenGL context.
///
/// Panics if context is not current.
unsafe fn create_context_from_native_context(
&self,
native_context: Self::NativeContext,
Expand Down

0 comments on commit 6983b26

Please sign in to comment.