Merge branch 'master' of https://github.com/rheit/zdoom
# Conflicts: # src/r_segs.cpp # src/v_draw.cpp
This commit is contained in:
commit
5e547e9455
2 changed files with 22 additions and 6 deletions
|
|
@ -1225,7 +1225,7 @@ void wallscan_drawcol1(int x, int y1, int y2, WallscanSampler &sampler, DWORD(*d
|
|||
}
|
||||
else
|
||||
{
|
||||
if (sampler.uv_max == 0) // power of two
|
||||
if (sampler.uv_max == 0 || sampler.uv_step == 0) // power of two
|
||||
{
|
||||
int count = y2 - y1;
|
||||
|
||||
|
|
@ -1300,7 +1300,7 @@ void wallscan_drawcol4(int x, int y1, int y2, WallscanSampler *sampler, void(*dr
|
|||
}
|
||||
else
|
||||
{
|
||||
if (sampler[0].uv_max == 0) // power of two, no wrap handling needed
|
||||
if (sampler[0].uv_max == 0 || sampler[0].uv_step == 0) // power of two, no wrap handling needed
|
||||
{
|
||||
int count = y2 - y1;
|
||||
for (int i = 0; i < 4; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue