mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
(PS3) Fixes the issue with resolution switching + cleaned up
some stuff
This commit is contained in:
parent
a13684c80c
commit
375d05ed13
@ -25,7 +25,6 @@
|
|||||||
#include <cell/sysmodule.h>
|
#include <cell/sysmodule.h>
|
||||||
#include <sysutil/sysutil_screenshot.h>
|
#include <sysutil/sysutil_screenshot.h>
|
||||||
#include <sysutil/sysutil_common.h>
|
#include <sysutil/sysutil_common.h>
|
||||||
#include <sys/spu_initialize.h>
|
|
||||||
#include <sysutil/sysutil_gamecontent.h>
|
#include <sysutil/sysutil_gamecontent.h>
|
||||||
|
|
||||||
#include "ps3_input.h"
|
#include "ps3_input.h"
|
||||||
@ -381,9 +380,6 @@ static void startup_ssnes(void)
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
// Initialize 6 SPUs but reserve 1 SPU as a raw SPU for PSGL
|
|
||||||
sys_spu_initialize(6, 1);
|
|
||||||
|
|
||||||
cellSysmoduleLoadModule(CELL_SYSMODULE_IO);
|
cellSysmoduleLoadModule(CELL_SYSMODULE_IO);
|
||||||
cellSysmoduleLoadModule(CELL_SYSMODULE_FS);
|
cellSysmoduleLoadModule(CELL_SYSMODULE_FS);
|
||||||
cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_GAME);
|
cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_GAME);
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#include <sys/spu_initialize.h>
|
||||||
|
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
#include "shared.h"
|
#include "shared.h"
|
||||||
|
|
||||||
@ -772,16 +774,7 @@ static void psgl_deinit(gl_t *gl)
|
|||||||
psglDestroyContext(gl->gl_context);
|
psglDestroyContext(gl->gl_context);
|
||||||
psglDestroyDevice(gl->gl_device);
|
psglDestroyDevice(gl->gl_device);
|
||||||
|
|
||||||
#if(CELL_SDK_VERSION > 0x340000)
|
|
||||||
// FIXME: It will crash here for 1.92 - termination of the PSGL library - works fine for 3.41
|
|
||||||
psglExit();
|
psglExit();
|
||||||
#else
|
|
||||||
// For 1.92
|
|
||||||
gl->min_width = 0;
|
|
||||||
gl->min_height = 0;
|
|
||||||
gl->gl_context = NULL;
|
|
||||||
gl->gl_device = NULL;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gl_free(void *data)
|
static void gl_free(void *data)
|
||||||
@ -833,6 +826,8 @@ static bool psgl_init_device(gl_t *gl, const video_info_t *video, uint32_t resol
|
|||||||
options.enable |= PSGL_INIT_HOST_MEMORY_SIZE;
|
options.enable |= PSGL_INIT_HOST_MEMORY_SIZE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Initialize 6 SPUs but reserve 1 SPU as a raw SPU for PSGL
|
||||||
|
sys_spu_initialize(6, 1);
|
||||||
psglInit(&options);
|
psglInit(&options);
|
||||||
|
|
||||||
PSGLdeviceParameters params;
|
PSGLdeviceParameters params;
|
||||||
@ -1343,6 +1338,7 @@ void ps3graphics_video_reinit(void)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
ps3_video_deinit();
|
ps3_video_deinit();
|
||||||
|
gl_cg_invalidate_context();
|
||||||
ps3graphics_video_init(false);
|
ps3graphics_video_init(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user