Fix wrong aligment in the buffer

This commit is contained in:
Francisco Javier Trujillo Mata
2020-12-21 21:58:23 +01:00
parent 8b55ffc533
commit c85ab05800
2 changed files with 6 additions and 7 deletions

View File

@@ -790,11 +790,6 @@ endif
%.o: %.c %.o: %.c
$(CC) -c $(OBJOUT)$@ $< $(CFLAGS) $(INCFLAGS) $(CC) -c $(OBJOUT)$@ $< $(CFLAGS) $(INCFLAGS)
# ifeq ($(platform), ps2)
# %.o: %.s
# mips64r5900el-ps2-elf-as -G0 $< -o $@
# endif
clean-objs: clean-objs:
rm -f $(OBJECTS) rm -f $(OBJECTS)

View File

@@ -28,6 +28,10 @@
#include "../../vsuni.h" #include "../../vsuni.h"
#include "../../video.h" #include "../../video.h"
#ifdef PSP
#include "pspgu.h"
#endif
#if defined(RENDER_GSKIT_PS2) #if defined(RENDER_GSKIT_PS2)
#include "libretro-common/include/libretro_gskit_ps2.h" #include "libretro-common/include/libretro_gskit_ps2.h"
#endif #endif
@@ -159,8 +163,8 @@ static unsigned opt_showAdvSoundOptions = 0;
static unsigned opt_showAdvSystemOptions = 0; static unsigned opt_showAdvSystemOptions = 0;
int FCEUnetplay; int FCEUnetplay;
#ifdef PSP
#include "pspgu.h" #if defined(PSP) || defined(PS2)
static __attribute__((aligned(16))) uint16_t retro_palette[256]; static __attribute__((aligned(16))) uint16_t retro_palette[256];
#else #else
static uint16_t retro_palette[256]; static uint16_t retro_palette[256];