mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
menu_display_draw_frame - put in potential edge case fix
This commit is contained in:
parent
3e17c9e741
commit
434f8383d8
@ -514,6 +514,10 @@ void menu_display_draw_frame(
|
||||
const shader_backend_t *shader = (const shader_backend_t*)shader_data;
|
||||
driver_t *driver = driver_get_ptr();
|
||||
|
||||
/* TODO - edge case */
|
||||
if (height <= 0)
|
||||
height = 1;
|
||||
|
||||
glViewport(x, y, width, height);
|
||||
glBindTexture(GL_TEXTURE_2D, texture);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user