Change return type of load_texture to uintptr_t

This commit is contained in:
twinaphex 2015-12-20 22:38:18 +01:00
parent 20170ef2b0
commit f53711f791
4 changed files with 4 additions and 4 deletions

View File

@ -1715,7 +1715,7 @@ static int video_texture_load_wrap_d3d(void *data)
return id; return id;
} }
static unsigned d3d_load_texture(void *video_data, void *data, static uintptr_t d3d_load_texture(void *video_data, void *data,
bool threaded, enum texture_filter_type filter_type) bool threaded, enum texture_filter_type filter_type)
{ {
uintptr_t id = 0; uintptr_t id = 0;

View File

@ -3512,7 +3512,7 @@ static int video_texture_load_wrap_gl(void *data)
return id; return id;
} }
static unsigned gl_load_texture(void *video_data, void *data, static uintptr_t gl_load_texture(void *video_data, void *data,
bool threaded, enum texture_filter_type filter_type) bool threaded, enum texture_filter_type filter_type)
{ {
uintptr_t id = 0; uintptr_t id = 0;

View File

@ -190,7 +190,7 @@ typedef struct video_info
typedef struct video_poke_interface typedef struct video_poke_interface
{ {
unsigned (*load_texture)(void *video_data, void *data, uintptr_t (*load_texture)(void *video_data, void *data,
bool threaded, enum texture_filter_type filter_type); bool threaded, enum texture_filter_type filter_type);
void (*unload_texture)(void *data, uintptr_t *id); void (*unload_texture)(void *data, uintptr_t *id);
void (*set_video_mode)(void *data, unsigned width, unsigned height, bool fullscreen); void (*set_video_mode)(void *data, unsigned width, unsigned height, bool fullscreen);

View File

@ -1135,7 +1135,7 @@ static void thread_set_osd_msg(void *data, const char *msg,
} }
#endif #endif
static unsigned thread_load_texture(void *video_data, void *data, static uintptr_t thread_load_texture(void *video_data, void *data,
bool threaded, enum texture_filter_type filter_type) bool threaded, enum texture_filter_type filter_type)
{ {
thread_video_t *thr = (thread_video_t*)video_data; thread_video_t *thr = (thread_video_t*)video_data;