Skip to content

Commit

Permalink
Update ndk/src/surface_texture.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Marijn Suijten <[email protected]>
  • Loading branch information
lattice0 and MarijnS95 authored May 28, 2022
1 parent cac2ead commit 88ba5e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ndk/src/surface_texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ impl SurfaceTexture {
}

/// Update the texture image to the most recent frame from the image stream.
///
/// This may only be called while the OpenGL ES context that owns the texture is current on the calling thread. It will implicitly bind its texture to the `GL_TEXTURE_EXTERNAL_OES` texture target.
pub fn update_tex_image(&self) -> Result<(), PosixError> {
let r = unsafe { ffi::ASurfaceTexture_updateTexImage(self.ptr.as_ptr()) };
if r == 0 {
Expand Down

0 comments on commit 88ba5e0

Please sign in to comment.