mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-19 07:16:21 +00:00
Try to not use glDeleteTextures directly outside
This commit is contained in:
parent
e81e027022
commit
780bf74273
@ -17,6 +17,7 @@
|
||||
|
||||
#include <glsym/glsym.h>
|
||||
#include "../../driver.h"
|
||||
#include "../../gfx/video_texture.h"
|
||||
|
||||
typedef struct android_camera
|
||||
{
|
||||
@ -149,7 +150,7 @@ static void android_camera_stop(void *data)
|
||||
androidcamera->onCameraStop);
|
||||
|
||||
if (androidcamera->tex)
|
||||
glDeleteTextures(1, &androidcamera->tex);
|
||||
video_texture_unload(TEXTURE_BACKEND_OPENGL, (uintptr_t*)&androidcamera->tex);
|
||||
}
|
||||
|
||||
static bool android_camera_poll(void *data,
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "../drivers/gl_common.h"
|
||||
#include "../font_driver.h"
|
||||
#include "../video_shader_driver.h"
|
||||
#include "../video_texture.h"
|
||||
|
||||
/* TODO: Move viewport side effects to the caller: it's a source of bugs. */
|
||||
|
||||
@ -185,7 +186,7 @@ static void gl_raster_font_free_font(void *data)
|
||||
if (font->font_driver && font->font_data)
|
||||
font->font_driver->free(font->font_data);
|
||||
|
||||
glDeleteTextures(1, &font->tex);
|
||||
video_texture_unload(TEXTURE_BACKEND_OPENGL, (uintptr_t*)&font->tex);
|
||||
free(font);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user