mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Fix video_layout fbo (#14418)
This commit is contained in:
parent
b014a9ef98
commit
c1309a34c2
@ -2528,8 +2528,12 @@ static void gl2_video_layout_fbo_init(gl2_t *gl, unsigned width, unsigned height
|
|||||||
glGenTextures(1, &gl->video_layout_fbo_texture);
|
glGenTextures(1, &gl->video_layout_fbo_texture);
|
||||||
glBindTexture(GL_TEXTURE_2D, gl->video_layout_fbo_texture);
|
glBindTexture(GL_TEXTURE_2D, gl->video_layout_fbo_texture);
|
||||||
|
|
||||||
gl2_load_texture_image(GL_TEXTURE_2D, 0, RARCH_GL_INTERNAL_FORMAT32,
|
gl2_load_texture_image(GL_TEXTURE_2D,
|
||||||
width, height, 0, GL_RGBA, GL_FLOAT, NULL);
|
0, RARCH_GL_INTERNAL_FORMAT32,
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
0, RARCH_GL_TEXTURE_TYPE32,
|
||||||
|
RARCH_GL_FORMAT32, NULL);
|
||||||
|
|
||||||
gl2_gen_fb(1, &gl->video_layout_fbo);
|
gl2_gen_fb(1, &gl->video_layout_fbo);
|
||||||
gl2_bind_fb(gl->video_layout_fbo);
|
gl2_bind_fb(gl->video_layout_fbo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user