mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Comment out asserts that can be triggered when launching MaterialUI
in fullscreen mode
This commit is contained in:
parent
3346cd23c0
commit
b25c571b23
4
deps/stb/stb_truetype.h
vendored
4
deps/stb/stb_truetype.h
vendored
@ -1876,6 +1876,7 @@ static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edg
|
||||
y1 = e->ey;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (x0 == x)
|
||||
assert(x1 <= x+1);
|
||||
else if (x0 == x+1)
|
||||
@ -1886,13 +1887,16 @@ static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edg
|
||||
assert(x1 >= x+1);
|
||||
else
|
||||
assert(x1 >= x && x1 <= x+1);
|
||||
#endif
|
||||
|
||||
if (x0 <= x && x1 <= x)
|
||||
scanline[x] += e->direction * (y1-y0);
|
||||
else if (x0 >= x+1 && x1 >= x+1)
|
||||
;
|
||||
else {
|
||||
#if 0
|
||||
assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1);
|
||||
#endif
|
||||
scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); /* coverage = 1 - average x position */
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user