modify folder segv fix, opengl pbfr resource conflict fix
[goodguy/history.git] / cinelerra-5.1 / guicast / vframe3d.C
index 65eb1f3e92ff6a5def475444ac0b9eec810b859a..65d9d5ce7485e29b0c0b996cc0bc1093331e3d6a 100644 (file)
@@ -151,8 +151,8 @@ void VFrame::to_texture()
 
 void VFrame::create_pbuffer()
 {
-       if(pbuffer &&
-               pbuffer->window_id != BC_WindowBase::get_synchronous()->current_window->get_id())
+       if( pbuffer && (pbuffer->w != get_w() || pbuffer->h != get_h() ||
+               pbuffer->window_id != BC_WindowBase::get_synchronous()->current_window->get_id() ) )
        {
                delete pbuffer;
                pbuffer = 0;