[r????-r1360] r_visibility : crash on change
Moderator: Graf Zahl
-
- Posts: 4
- Joined: Thu Apr 19, 2012 23:48
[r????-r1360] r_visibility : crash on change
The r_visibility CVar seems to have broken in GZDoom. I can enter 'r_visibility' (with no arguments) just fine, but as soon as I change it to anything, the game crashes. Even if I change it to the value that it currently is. It works just fine in software mode. Attached a crash log.
- Attachments
-
- CrashReport.zip
- (18.47 KiB) Downloaded 65 times
- Gez
- Developer
- Posts: 1399
- Joined: Mon Oct 22, 2007 16:47
Re: [r????-r1360] r_visibility : crash on change
r_visibility is actually a console command, as odd as it seems. Just one that imitates a cvar.
I think the crash happens because it uses values not set by the hardware renderer:
r_FloorVisibility and FocalLengthY are both 0 here; so you get a division by zero.
I think the crash happens because it uses values not set by the hardware renderer:
Code: Select all
r_FloorVisibility = Scale (160*FRACUNIT, r_FloorVisibility, FocalLengthY);
- Gez
- Developer
- Posts: 1399
- Joined: Mon Oct 22, 2007 16:47
Re: [r????-r1360] r_visibility : crash on change
Forgot about that. Fixed in r1429. Not that there's any reason to use this console command in OpenGL mode anyway since the changed values are all entirely ignored by the hardware renderer; but that is not a reason to make it crash.