mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- fixed: skybug on ARM was caused by undefined conversion from float to unsigned int. adding intermediary signed int cast fixes this problem.
This commit is contained in:
parent
b2e61412da
commit
09c3060728
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ namespace swrenderer
|
|||
double v = (texturemid + uv_stepd * (y1 - viewport->CenterY + 0.5)) / height;
|
||||
double v_step = uv_stepd / height;
|
||||
|
||||
uint32_t uv_pos = (uint32_t)(v * 0x01000000);
|
||||
uint32_t uv_step = (uint32_t)(v_step * 0x01000000);
|
||||
uint32_t uv_pos = (uint32_t)(int32_t)(v * 0x01000000);
|
||||
uint32_t uv_step = (uint32_t)(int32_t)(v_step * 0x01000000);
|
||||
|
||||
int x = start_x;
|
||||
if (renderportal->MirrorFlags & RF_XFLIP)
|
||||
|
|
Loading…
Reference in a new issue