Render3D: Assume the initial states of the 3D rendering instead of initializing them with CommonSettings. Most notably, assume that _enableTextureDeposterize = false in order to force it to create its buffer later on. Fixes a potential crashing bug whenever Texture Deposterization is enabled. (Regression from commit 15a19ba. Fixes #109.)

This commit is contained in:
rogerman 2017-10-19 16:11:55 -07:00
parent 711115921b
commit 45572fb277
1 changed files with 5 additions and 5 deletions

View File

@ -299,14 +299,14 @@ Render3D::Render3D()
_textureUpscaleBuffer = NULL;
_enableEdgeMark = CommonSettings.GFX3D_EdgeMark;
_enableFog = CommonSettings.GFX3D_Fog;
_enableTextureSmoothing = CommonSettings.GFX3D_Renderer_TextureSmoothing;
_enableEdgeMark = true;
_enableFog = true;
_enableTextureSmoothing = false;
_enableTextureSampling = CommonSettings.GFX3D_Texture;
_enableTextureSampling = true;
_prevEnableTextureSampling = _enableTextureSampling;
_enableTextureDeposterize = CommonSettings.GFX3D_Renderer_TextureDeposterize;
_enableTextureDeposterize = false;
_prevEnableTextureDeposterize = _enableTextureDeposterize;
_textureScalingFactor = 1;