File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -701,7 +701,6 @@ class NativeTextureRenderer final
701
701
env->DeleteLocalRef (j_caller_class);
702
702
703
703
native_windows_ = ANativeWindow_fromSurface (env, surface_jni);
704
- gl_context_ = std::make_shared<GLContext>(native_windows_);
705
704
706
705
IrisRtcVideoFrameConfig config;
707
706
config.uid = uid;
@@ -739,6 +738,13 @@ class NativeTextureRenderer final
739
738
NotifySizeChangeCallback (video_frame->width , video_frame->height );
740
739
width_ = video_frame->width ;
741
740
height_ = video_frame->height ;
741
+
742
+ rendering_op_.reset ();
743
+ gl_context_.reset ();
744
+ }
745
+
746
+ if (!gl_context_) {
747
+ gl_context_ = std::make_shared<GLContext>(native_windows_);
742
748
}
743
749
744
750
if (!gl_context_->SetupSurface (native_windows_)) {
You can’t perform that action at this time.
0 commit comments