Skip to content

Commit

Permalink
deprecate *_from_gl_name functions (native)
Browse files Browse the repository at this point in the history
The constructors for the Native* types is public now and therefore these from_gl_name functions are redundant.
  • Loading branch information
i509VCB committed Sep 23, 2022
1 parent c8a011f commit 92ec34b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ impl Context {
///
/// This can be useful when a texture is created outside of glow (e.g. OpenXR surface) but glow
/// still needs access to it for rendering.
#[deprecated = "Use the NativeTexture constructor instead"]
pub unsafe fn create_texture_from_gl_name(gl_name: native_gl::GLuint) -> NativeTexture {
NativeTexture(non_zero_gl_name(gl_name))
}
Expand All @@ -98,6 +99,7 @@ impl Context {
///
/// This can be useful when a framebuffer is created outside of glow (e.g: via `surfman` or another
/// crate that supports sharing of buffers between GL contexts), but glow needs to set it as a target.
#[deprecated = "Use the NativeFramebuffer constructor instead"]
pub unsafe fn create_framebuffer_from_gl_name(gl_name: native_gl::GLuint) -> NativeFramebuffer {
NativeFramebuffer(non_zero_gl_name(gl_name))
}
Expand Down

0 comments on commit 92ec34b

Please sign in to comment.