mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(gl) Add check in gl_overlay_vertex_geom()
This commit is contained in:
parent
dc5460effd
commit
dfd6d464a8
@ -2926,6 +2926,12 @@ static void gl_overlay_vertex_geom(void *data,
|
|||||||
if (!gl)
|
if (!gl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (image > gl->overlays)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Invalid overlay id: %u\n", image);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
vertex = (GLfloat*)&gl->overlay_vertex_coord[image * 8];
|
vertex = (GLfloat*)&gl->overlay_vertex_coord[image * 8];
|
||||||
|
|
||||||
/* Flipped, so we preserve top-down semantics. */
|
/* Flipped, so we preserve top-down semantics. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user