We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae632b commit 8b31a5eCopy full SHA for 8b31a5e
android/src/main/cpp/iris_rtc_rendering_android.cc
@@ -701,7 +701,6 @@ class NativeTextureRenderer final
701
env->DeleteLocalRef(j_caller_class);
702
703
native_windows_ = ANativeWindow_fromSurface(env, surface_jni);
704
- gl_context_ = std::make_shared<GLContext>(native_windows_);
705
706
IrisRtcVideoFrameConfig config;
707
config.uid = uid;
@@ -739,6 +738,13 @@ class NativeTextureRenderer final
739
738
NotifySizeChangeCallback(video_frame->width, video_frame->height);
740
width_ = video_frame->width;
741
height_ = video_frame->height;
+
742
+ rendering_op_.reset();
743
+ gl_context_.reset();
744
+ }
745
746
+ if (!gl_context_) {
747
+ gl_context_ = std::make_shared<GLContext>(native_windows_);
748
}
749
750
if (!gl_context_->SetupSurface(native_windows_)) {
0 commit comments