Fixed NEON GPU plugin for PC by using stdint.h types - use
[pcsx_rearmed.git] / plugins / gpu_neon / psx_gpu / psx_gpu.c
index f52e842..24f663b 100644 (file)
@@ -4130,7 +4130,11 @@ void setup_sprite_untextured_simple(psx_gpu_struct *psx_gpu, s32 x, s32 y,
     num_width = width;
 
     vram_ptr = (void *)vram_ptr16;
+#ifdef NEON_PC
+    if((int32_t)vram_ptr16 & 2)
+#else
     if((long)vram_ptr16 & 2)
+#endif
     {
       *vram_ptr16 = color_32bpp;
       vram_ptr = (void *)(vram_ptr16 + 1);
@@ -5056,6 +5060,7 @@ void initialize_psx_gpu(psx_gpu_struct *psx_gpu, u16 *vram)
   memset(psx_gpu->vram_ptr, 0, sizeof(u16) * 1024 * 512);
 
   initialize_reciprocal_table();
+  psx_gpu->reciprocal_table_ptr = reciprocal_table;
 
   //    00 01 10 11
   // 00  0  4  1  5