mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +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)
|
||||
return;
|
||||
|
||||
if (image > gl->overlays)
|
||||
{
|
||||
RARCH_ERR("Invalid overlay id: %u\n", image);
|
||||
return;
|
||||
}
|
||||
|
||||
vertex = (GLfloat*)&gl->overlay_vertex_coord[image * 8];
|
||||
|
||||
/* Flipped, so we preserve top-down semantics. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user