I had this exact problem--game capture in windowed mode causes a flickering black window--but it seemed to fix itself after another OBS update.