mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(RMenu) Fix - don't want to glDeletTexture RGUI texture when
game texture has to be reinitialized
This commit is contained in:
parent
23fff4cb9d
commit
a2438f7b80
6
gfx/gl.c
6
gfx/gl.c
@ -1635,8 +1635,14 @@ static inline void gl_reinit_textures(void *data, const video_info_t *video)
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
glDeleteTextures(TEXTURES, gl->texture);
|
||||
|
||||
/* FIXME - why is this done? We don't want to do this on PS3 for re-entrancy
|
||||
* reasons - also, unlike RGUI, the texture is not uploaded every frame
|
||||
* but only set once outside in menu_init - this reiniting of the RGUI
|
||||
* texture might require a rethink */
|
||||
#ifndef __CELLOS_LV2__
|
||||
#if defined(HAVE_RGUI) || defined(HAVE_RMENU)
|
||||
glDeleteTextures(1, &gl->rgui_texture);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
gl_init_textures(gl, video);
|
||||
|
Loading…
x
Reference in New Issue
Block a user