mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
(PS3) Works on PS3 again
This commit is contained in:
parent
eee9468900
commit
e42f515e11
@ -10,6 +10,7 @@ DEBUG = 0
|
||||
DOWNLOAD_SHADERS = 1
|
||||
STRIPPING_ENABLE = 0
|
||||
HAVE_RGL = 1
|
||||
HAVE_RGL_NEW = 1
|
||||
HAVE_LOGGER = 0
|
||||
|
||||
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
|
||||
@ -65,6 +66,10 @@ else
|
||||
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_RGL_NEW), 1)
|
||||
GL_LIBS += -lcgc_ps3
|
||||
endif
|
||||
|
||||
ifeq ($(CELL_BUILD_TOOLS), SNC)
|
||||
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
|
||||
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
||||
|
@ -86,6 +86,7 @@ VIDEO CONTEXT
|
||||
============================================================ */
|
||||
|
||||
#ifdef HAVE_VID_CONTEXT
|
||||
#include "../../gfx/gfx_context.c"
|
||||
|
||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||
#include "../../gfx/context/ps3_ctx.c"
|
||||
|
@ -1156,12 +1156,12 @@ static void set_setting_action(menu *current_menu, unsigned switchvalue, uint64_
|
||||
if((input & (1 << RMENU_DEVICE_NAV_LEFT)) || (input & (1 << RMENU_DEVICE_NAV_RIGHT)) || (input & (1 << RMENU_DEVICE_NAV_B)))
|
||||
{
|
||||
rarch_settings_change(S_THROTTLE);
|
||||
gfx_ctx_set_swap_interval(g_console.throttle_enable, true);
|
||||
gfx_ctx_set_swap_interval(g_console.throttle_enable);
|
||||
}
|
||||
if(input & (1 << RMENU_DEVICE_NAV_START))
|
||||
{
|
||||
rarch_settings_default(S_DEF_THROTTLE);
|
||||
gfx_ctx_set_swap_interval(g_console.throttle_enable, true);
|
||||
gfx_ctx_set_swap_interval(g_console.throttle_enable);
|
||||
}
|
||||
break;
|
||||
case SETTING_TRIPLE_BUFFERING:
|
||||
|
@ -428,21 +428,21 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = {
|
||||
gfx_ctx_has_focus,
|
||||
gfx_ctx_swap_buffers,
|
||||
gfx_ctx_input_driver,
|
||||
gfx_ctx_get_proc_address,
|
||||
NULL,
|
||||
"ps3",
|
||||
|
||||
// RARCH_CONSOLE stuff.
|
||||
gfx_set_filtering,
|
||||
gfx_get_available_resolutions,
|
||||
gfx_check_resolutions,
|
||||
gfx_ctx_set_filtering,
|
||||
gfx_ctx_get_available_resolutions,
|
||||
gfx_ctx_check_resolution,
|
||||
|
||||
#ifdef HAVE_CG_MENU
|
||||
gfx_menu_init,
|
||||
gfx_ctx_menu_init,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
|
||||
gfx_set_fbo,
|
||||
gfx_apply_fbo_state_changes,
|
||||
gfx_ctx_set_fbo,
|
||||
gfx_ctx_apply_fbo_state_changes,
|
||||
};
|
||||
|
||||
|
5
gfx/gl.c
5
gfx/gl.c
@ -1560,8 +1560,9 @@ static void gl_start(void)
|
||||
}
|
||||
driver.video_data = gl_init(&video_info, NULL, NULL);
|
||||
|
||||
if (gl->driver->set_fbo)
|
||||
gl->driver->set_fbo(g_console.fbo_enabled);
|
||||
gl_t *gl = (gl_t*)driver.video_data;
|
||||
|
||||
gl->driver->set_fbo(g_console.fbo_enabled);
|
||||
gl->driver->get_available_resolutions();
|
||||
if (gl->driver->menu_init)
|
||||
gl->driver->menu_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user