- moved two MAPINFO settings that are not exclusively used by the OpenGL renderer to the common code.

This commit is contained in:
Christoph Oelckers 2017-03-14 18:31:11 +01:00
commit d86bd470e5
12 changed files with 40 additions and 63 deletions

View file

@ -1055,7 +1055,7 @@ void gl_RenderModel(GLSprite * spr)
gl_RenderState.mModelMatrix.rotate(-smf->rolloffset, 1, 0, 0);
// consider the pixel stretching. For non-voxels this must be factored out here
float stretch = (smf->modelIDs[0] != -1 ? Models[smf->modelIDs[0]]->getAspectFactor() : 1.f) / glset.pixelstretch;
float stretch = (smf->modelIDs[0] != -1 ? Models[smf->modelIDs[0]]->getAspectFactor() : 1.f) / level.info->pixelstretch;
gl_RenderState.mModelMatrix.scale(1, stretch, 1);