Adapt ps2 port to latest SDK Status

This commit is contained in:
Francisco Javier Trujillo Mata
2020-05-19 21:03:22 +02:00
parent 9604a33f7a
commit c68bfd4c7f
6 changed files with 4 additions and 259 deletions

View File

@@ -1,4 +1,4 @@
/* Copyright (C) 2010-2018 The RetroArch team
/* Copyright (C) 2010-2020 The RetroArch team
*
* ---------------------------------------------------------------------------------------------
* The following license statement only applies to this libretro API header (libretro_d3d.h)
@@ -33,7 +33,7 @@
#include <gsKit.h>
#define RETRO_HW_RENDER_INTERFACE_GSKIT_PS2_VERSION 1
#define RETRO_HW_RENDER_INTERFACE_GSKIT_PS2_VERSION 2
struct retro_hw_ps2_insets
{
@@ -57,8 +57,6 @@ struct retro_hw_render_interface_gskit_ps2
* in this interface.
*/
GSTEXTURE *coreTexture;
bool clearTexture;
bool updatedPalette;
struct retro_hw_ps2_insets padding;
};
typedef struct retro_hw_render_interface_gskit_ps2 RETRO_HW_RENDER_INTEFACE_GSKIT_PS2;

View File

@@ -1063,12 +1063,6 @@ static void retro_set_custom_palette(void)
}
FCEUI_SetPaletteArray( base_palette );
}
#if defined(RENDER_GSKIT_PS2)
if (ps2) {
ps2->updatedPalette = true;
}
#endif
}
/* Set variables for NTSC(1) / PAL(2) / Dendy(3)
@@ -1840,7 +1834,6 @@ static void retro_run_blit(uint8_t *gfx)
overscan_h ? 8.0f : 0.0f};
}
ps2->updatedPalette = true;
ps2->coreTexture->Clut = (u32*)retro_palette;
ps2->coreTexture->Mem = (u32*)gfx;