Skip to content

Commit b3a4060

Browse files
authored
docs (servo#330)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent e78ea1b commit b3a4060

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/device.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ where
5353
attributes: &ContextAttributes,
5454
) -> Result<Self::ContextDescriptor, Error>;
5555

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

6666
/// Wraps a native context object in an OpenGL context.
67+
///
68+
/// Panics if context is not current.
6769
unsafe fn create_context_from_native_context(
6870
&self,
6971
native_context: Self::NativeContext,

0 commit comments

Comments
 (0)