Fix null pointer crash

This commit is contained in:
Magnus Norddahl 2019-12-06 00:19:51 +01:00
parent bbdd146243
commit a7a899ca14

View file

@ -139,6 +139,9 @@ namespace swrenderer
int texwidth = tex->GetPhysicalWidth();
int texheight = tex->GetPhysicalHeight();
dc_viewport = thread->Viewport.get();
dc_textureheight = texheight;
vstepY *= texheight;
for (int x = sx0; x < sx1; x++)