mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 05:17:40 -07:00
fix crash under freak circumstances
This commit is contained in:
parent
60b28d846f
commit
19e8774ad0
@ -145,7 +145,7 @@ private:
|
|||||||
|
|
||||||
constexpr s32 Interpolate(s32 y0, s32 y1) const
|
constexpr s32 Interpolate(s32 y0, s32 y1) const
|
||||||
{
|
{
|
||||||
if (x == 0 || y0 == y1) return y0;
|
if (x == 0 || xdiff == 0 || y0 == y1) return y0;
|
||||||
|
|
||||||
if (!linear)
|
if (!linear)
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@ private:
|
|||||||
|
|
||||||
constexpr s32 InterpolateZ(s32 z0, s32 z1)
|
constexpr s32 InterpolateZ(s32 z0, s32 z1)
|
||||||
{
|
{
|
||||||
if (x == 0 || z0 == z1) return z0;
|
if (x == 0 || xdiff == 0 || z0 == z1) return z0;
|
||||||
|
|
||||||
if (wbuffer)
|
if (wbuffer)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user