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:
parent
711115921b
commit
45572fb277
|
@ -299,14 +299,14 @@ Render3D::Render3D()
|
||||||
|
|
||||||
_textureUpscaleBuffer = NULL;
|
_textureUpscaleBuffer = NULL;
|
||||||
|
|
||||||
_enableEdgeMark = CommonSettings.GFX3D_EdgeMark;
|
_enableEdgeMark = true;
|
||||||
_enableFog = CommonSettings.GFX3D_Fog;
|
_enableFog = true;
|
||||||
_enableTextureSmoothing = CommonSettings.GFX3D_Renderer_TextureSmoothing;
|
_enableTextureSmoothing = false;
|
||||||
|
|
||||||
_enableTextureSampling = CommonSettings.GFX3D_Texture;
|
_enableTextureSampling = true;
|
||||||
_prevEnableTextureSampling = _enableTextureSampling;
|
_prevEnableTextureSampling = _enableTextureSampling;
|
||||||
|
|
||||||
_enableTextureDeposterize = CommonSettings.GFX3D_Renderer_TextureDeposterize;
|
_enableTextureDeposterize = false;
|
||||||
_prevEnableTextureDeposterize = _enableTextureDeposterize;
|
_prevEnableTextureDeposterize = _enableTextureDeposterize;
|
||||||
|
|
||||||
_textureScalingFactor = 1;
|
_textureScalingFactor = 1;
|
||||||
|
|
Loading…
Reference in New Issue