Skip to content
Permalink
Browse files

Fixed Mac OS X build

  • Loading branch information
slouken committed Dec 11, 2017
1 parent ab06f57 commit 358e4d9c7e58981e2e47d4512e4f48a009f9dee3
Showing with 17 additions and 2 deletions.
  1. +17 −2 src/render/metal/SDL_render_metal.m
@@ -121,6 +121,19 @@ @interface METAL_RenderData : NSObject
@end

@implementation METAL_RenderData
@synthesize beginScene;
@synthesize mtldevice;
@synthesize mtlcmdqueue;
@synthesize mtlcmdbuffer;
@synthesize mtlcmdencoder;
@synthesize mtllibrary;
@synthesize mtlbackbuffer;
@synthesize mtlpipelineprims;
@synthesize mtlpipelinecopynearest;
@synthesize mtlpipelinecopylinear;
@synthesize mtlbufclearverts;
@synthesize mtllayer;
@synthesize mtlpassdesc;
@end

@interface METAL_TextureData : NSObject
@@ -819,10 +832,12 @@ static void METAL_ActivateRenderer(SDL_Renderer * renderer)
[data.mtlcmdqueue release];
for (int i = 0; i < 4; i++) {
[data.mtlpipelineprims[i] release];
[data.mtlpipelinecopy[i] release];
[data.mtlpipelinecopynearest[i] release];
[data.mtlpipelinecopylinear[i] release];
}
[data.mtlpipelineprims release];
[data.mtlpipelinecopy release];
[data.mtlpipelinecopynearest release];
[data.mtlpipelinecopylinear release];
[data.mtlbufclearverts release];
[data.mtllibrary release];
[data.mtldevice release];

0 comments on commit 358e4d9

Please sign in to comment.