Fix OpenGL polyobject texture distortion
This commit is contained in:
parent
c944d3adf4
commit
e331c9d18e
|
@ -2757,8 +2757,8 @@ static void HWR_RenderPolyObjectPlane(polyobj_t *polysector, boolean isceiling,
|
||||||
HWR_SetCurrentTexture(NULL);
|
HWR_SetCurrentTexture(NULL);
|
||||||
|
|
||||||
// reference point for flat texture coord for each vertex around the polygon
|
// reference point for flat texture coord for each vertex around the polygon
|
||||||
flatxref = (float)((polysector->origVerts[0].x & (~flatflag)) / fflatwidth);
|
flatxref = (float)(((fixed_t)FIXED_TO_FLOAT(polysector->origVerts[0].x) & (~flatflag)) / fflatwidth);
|
||||||
flatyref = (float)((polysector->origVerts[0].y & (~flatflag)) / fflatheight);
|
flatyref = (float)(((fixed_t)FIXED_TO_FLOAT(polysector->origVerts[0].y) & (~flatflag)) / fflatheight);
|
||||||
|
|
||||||
// transform
|
// transform
|
||||||
v3d = planeVerts;
|
v3d = planeVerts;
|
||||||
|
|
Loading…
Reference in New Issue