- move r_utility globals into r_viewpoint and r_viewwindow

- change r_utility functions to only work on FRenderViewpoint and FViewWindow
This commit is contained in:
Magnus Norddahl 2017-03-11 23:28:07 +01:00
commit 0c9014b984
75 changed files with 817 additions and 839 deletions

View file

@ -80,12 +80,12 @@ void FWarpTexture::Unload ()
bool FWarpTexture::CheckModified ()
{
return r_FrameTime != GenTime;
return r_viewpoint.FrameTime != GenTime;
}
const uint8_t *FWarpTexture::GetPixels ()
{
uint32_t time = r_FrameTime;
uint32_t time = r_viewpoint.FrameTime;
if (Pixels == NULL || time != GenTime)
{
@ -96,7 +96,7 @@ const uint8_t *FWarpTexture::GetPixels ()
const uint32_t *FWarpTexture::GetPixelsBgra()
{
uint32_t time = r_FrameTime;
uint32_t time = r_viewpoint.FrameTime;
if (Pixels == NULL || time != GenTime)
{
MakeTexture(time);
@ -115,7 +115,7 @@ const uint32_t *FWarpTexture::GetPixelsBgra()
const uint8_t *FWarpTexture::GetColumn (unsigned int column, const Span **spans_out)
{
uint32_t time = r_FrameTime;
uint32_t time = r_viewpoint.FrameTime;
if (Pixels == NULL || time != GenTime)
{