< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLContext.m

Print this page
*** 97,10 ***
--- 97,12 ---
  @synthesize textureFunction,
              vertexCacheEnabled, aaEnabled, device, library, pipelineStateStorage,
              commandQueue, vertexBuffer,
              texturePool;
  
+ extern void initSamplers(id<MTLDevice> device);
+ 
  - (id)initWithDevice:(id<MTLDevice>)d shadersLib:(NSString*)shadersLib {
      self = [super init];
      if (self) {
          // Initialization code here.
          device = d;

*** 129,10 ***
--- 131,12 ---
  
          _commandBufferWrapper = nil;
  
          // Create command queue
          commandQueue = [device newCommandQueue];
+ 
+         initSamplers(device);
      }
      return self;
  }
  
  - (void)dealloc {
< prev index next >