metal: fix the size of the buffer used for constant data.
authorAlex Szpakowski <slime73@gmail.com>
Sun, 04 Nov 2018 12:24:05 -0400
changeset 12392046dcbdbaa74
parent 12391 ca6e41ade79a
child 12393 c7b7abeab424
metal: fix the size of the buffer used for constant data.
src/render/metal/SDL_render_metal.m
     1.1 --- a/src/render/metal/SDL_render_metal.m	Fri Nov 02 21:34:17 2018 -0400
     1.2 +++ b/src/render/metal/SDL_render_metal.m	Sun Nov 04 12:24:05 2018 -0400
     1.3 @@ -61,7 +61,7 @@
     1.4  static const size_t CONSTANTS_OFFSET_DECODE_JPEG = ALIGN_CONSTANTS(CONSTANTS_OFFSET_HALF_PIXEL_TRANSFORM + sizeof(float) * 16);
     1.5  static const size_t CONSTANTS_OFFSET_DECODE_BT601 = ALIGN_CONSTANTS(CONSTANTS_OFFSET_DECODE_JPEG + sizeof(float) * 4 * 4);
     1.6  static const size_t CONSTANTS_OFFSET_DECODE_BT709 = ALIGN_CONSTANTS(CONSTANTS_OFFSET_DECODE_BT601 + sizeof(float) * 4 * 4);
     1.7 -static const size_t CONSTANTS_LENGTH = CONSTANTS_OFFSET_DECODE_BT709 + sizeof(float) * 6;
     1.8 +static const size_t CONSTANTS_LENGTH = CONSTANTS_OFFSET_DECODE_BT709 + sizeof(float) * 4 * 4;
     1.9  
    1.10  typedef enum SDL_MetalVertexFunction
    1.11  {