mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-26 06:35:43 +00:00
(PS3) Fix build - GL side is totally screwed up now though -
investigate
This commit is contained in:
parent
c09fa1c7af
commit
455f74ea46
@ -266,7 +266,7 @@ struct console_settings
|
||||
char launch_app_on_exit[PATH_MAX];
|
||||
float menu_font_size;
|
||||
#ifdef HAVE_OSKUTIL
|
||||
void *oskutil_handle;
|
||||
oskutil_params oskutil_handle;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
@ -17,6 +17,10 @@
|
||||
#include "../../driver.h"
|
||||
#include "../../ps3/sdk_defines.h"
|
||||
|
||||
#ifndef __PSL1GHT__
|
||||
#include <sys/spu_initialize.h>
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
@ -143,9 +147,9 @@ void gfx_ctx_set_swap_interval(unsigned interval, bool inited)
|
||||
if (gl_context)
|
||||
{
|
||||
if (interval)
|
||||
glEnable(GL_VSYNC);
|
||||
glEnable(GL_VSYNC_SCE);
|
||||
else
|
||||
glDisable(GL_VSYNC);
|
||||
glDisable(GL_VSYNC_SCE);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ static void callback_sysutil_exit(uint64_t status, uint64_t param, void *userdat
|
||||
(void) param;
|
||||
(void) userdata;
|
||||
#ifdef HAVE_OSKUTIL
|
||||
oskutil_params *osk = g_console.oskutil_handle;
|
||||
oskutil_params *osk = &g_console.oskutil_handle;
|
||||
#endif
|
||||
gl_t *gl = driver.video_data;
|
||||
|
||||
@ -314,7 +314,7 @@ int main(int argc, char *argv[])
|
||||
driver.video = &video_gl;
|
||||
|
||||
#ifdef HAVE_OSKUTIL
|
||||
oskutil_params *osk = g_console.oskutil_handle;
|
||||
oskutil_params *osk = &g_console.oskutil_handle;
|
||||
oskutil_init(osk, 0);
|
||||
#endif
|
||||
|
||||
@ -373,11 +373,8 @@ begin_shutdown:
|
||||
menu_free();
|
||||
|
||||
#ifdef HAVE_OSKUTIL
|
||||
if(g_console.oskutil_handle)
|
||||
{
|
||||
oskutil_params *osk = g_console.oskutil_handle;
|
||||
if(osk)
|
||||
oskutil_unload(osk);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LOGGER
|
||||
|
Loading…
x
Reference in New Issue
Block a user