diff --git a/src/native/macosx/org_lwjgl_opengl_MacOSXCanvasPeerInfo.m b/src/native/macosx/org_lwjgl_opengl_MacOSXCanvasPeerInfo.m index 4518e232..337042f6 100644 --- a/src/native/macosx/org_lwjgl_opengl_MacOSXCanvasPeerInfo.m +++ b/src/native/macosx/org_lwjgl_opengl_MacOSXCanvasPeerInfo.m @@ -55,8 +55,12 @@ BOOL canDraw; } -@property (nonatomic) MacOSXPeerInfo *peer_info; -@property (nonatomic) GLuint textureID; +- (MacOSXPeerInfo*) peer_info; +- (GLuint) textureID; + +- (void) setPeer_info: (MacOSXPeerInfo*)input; +- (void) setTextureID: (GLuint)input; + @end @@ -118,8 +122,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXCanvasPeerInfo_nInitHandle // rotates a red square when asked to draw @implementation PBufferGLLayer -@synthesize peer_info; -@synthesize textureID; +//@synthesize peer_info; +//@synthesize textureID; // override to draw custom GL content -(void)drawInCGLContext:(CGLContextObj)glContext @@ -191,4 +195,20 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXCanvasPeerInfo_nInitHandle return peer_info->canDrawGL ? YES : NO; } +- (MacOSXPeerInfo*) peer_info { + return peer_info; +} + +- (GLuint) textureID { + return textureID; +} + +- (void) setPeer_info: (MacOSXPeerInfo*)input { + peer_info = input; +} + +- (void) setTextureID: (GLuint)input { + textureID = input; +} + @end \ No newline at end of file