The film in question is Flesh Gordon, a 1974 porn parody of the 30s Flash Gordon serials.
At one point, there's a spaceship crash which "Flesh" Gordon just barely walks away from. The special effects used in this scene are quite uncannily close to the the cutscene in Jedi Knight where Kyle Katarn crashes the Moldy Crow after escaping from Jerec's doomed cargo ship.
(Insert your own joke about the relationship between Star Wars and Flesh Gordon here.)