mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-21 02:01:24 +00:00
(GL) Implement get_video_output_size for GL driver
This commit is contained in:
parent
f9ede9d00a
commit
523d9503da
@ -3088,9 +3088,17 @@ static struct video_shader *gl_get_current_shader(void *data)
|
||||
return (gl && gl->shader) ? gl->shader->get_current_shader() : NULL;
|
||||
}
|
||||
|
||||
static void gl_get_video_output_size(void *data, unsigned *width, unsigned *height)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
|
||||
if (gl && gl->ctx_driver->get_video_output_size)
|
||||
gl->ctx_driver->get_video_output_size(gl, width, height);
|
||||
}
|
||||
|
||||
static const video_poke_interface_t gl_poke_interface = {
|
||||
NULL,
|
||||
NULL, /* get_video_output_size */
|
||||
gl_get_video_output_size,
|
||||
#ifdef HAVE_FBO
|
||||
gl_get_current_framebuffer,
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user