[bug] UiEditor Crash - 1.18

Hi,

When I try to open the UiEditor, it crashes.

Lumberyard 1.18

VS 2017

Log files:

Editor.log

Error.log

After an hour of exploring source (+ 3h for rebuild ;)), I realized that the problem is with RenderToTexture gem. When this gem is active, it causes a problem in one of the fog rendering functions and the Ui Editor just trigger this bug by calling that function.