Skip to content

Commit

Permalink
metal: Fix compilation when using older Apple SDKs (bug #4828).
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 17, 2019
1 parent 6be83e6 commit 216f5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/metal/SDL_render_metal.m
Expand Up @@ -271,7 +271,7 @@ - (void)dealloc
case SDL_METAL_VERTEX_SOLID:
/* position (float2) */
vertdesc.layouts[0].stride = sizeof(float) * 2;
vertdesc.layouts[0].stepFunction = MTLStepFunctionPerVertex;
vertdesc.layouts[0].stepFunction = MTLVertexStepFunctionPerVertex;

vertdesc.attributes[0].format = MTLVertexFormatFloat2;
vertdesc.attributes[0].offset = 0;
Expand All @@ -280,7 +280,7 @@ - (void)dealloc
case SDL_METAL_VERTEX_COPY:
/* position (float2), texcoord (float2) */
vertdesc.layouts[0].stride = sizeof(float) * 4;
vertdesc.layouts[0].stepFunction = MTLStepFunctionPerVertex;
vertdesc.layouts[0].stepFunction = MTLVertexStepFunctionPerVertex;

vertdesc.attributes[0].format = MTLVertexFormatFloat2;
vertdesc.attributes[0].offset = 0;
Expand Down

0 comments on commit 216f5b9

Please sign in to comment.