We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e78ea1b commit b3a4060Copy full SHA for b3a4060
src/device.rs
@@ -53,7 +53,7 @@ where
53
attributes: &ContextAttributes,
54
) -> Result<Self::ContextDescriptor, Error>;
55
56
- /// Creates a new OpenGL context.
+ /// Creates a new OpenGL context and makes it current.
57
///
58
/// The context initially has no surface attached. Until a surface is bound to it, rendering
59
/// commands will fail or have no effect.
@@ -64,6 +64,8 @@ where
64
) -> Result<Self::Context, Error>;
65
66
/// Wraps a native context object in an OpenGL context.
67
+ ///
68
+ /// Panics if context is not current.
69
unsafe fn create_context_from_native_context(
70
&self,
71
native_context: Self::NativeContext,
0 commit comments