libretro: align vout_buf to 128-bit
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Tue, 4 Mar 2014 19:15:13 +0000 (20:15 +0100)
committernotaz <notasas@gmail.com>
Sat, 20 Dec 2014 00:57:24 +0000 (02:57 +0200)
frontend/libretro.c

index 4f6b48e..94d649e 100644 (file)
@@ -989,7 +989,7 @@ void retro_init(void)
                exit(1);
        }
 
                exit(1);
        }
 
-       vout_buf = malloc(VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2);
+       posix_memalign(&vout_buf, 16, VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2);
 
        if (environ_cb(RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY, &dir) && dir)
        {
 
        if (environ_cb(RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY, &dir) && dir)
        {