This patch fixes texture distortion in polyobject planes in OpenGL by taking the fixed flatxref and flatyref calculation lines from Kart's code.
flatxref
flatyref
mentioned in issue #193
merged
mentioned in commit 28931b90