Post

Replies

Boosts

Views

Activity

Disable filtering of backing image when scaling
I have an OpenGL render of 1280x720 that is pin sharp and set the NSView content size to be 1280x720 also. Because of backingScaleFactor, it is 2x in size. When the NSView scales my backing image up because of backingScaleFactor, it uses a bilinear filter that slightly blurs the image which looks not great. How can I turn this filtering off? I just want nearest/point sampling. I tried: NSGraphicsContext *nsctx = [NSGraphicsContext currentContext]; nsctx.imageInterpolation = NSImageInterpolationHigh; nsctx.shouldAntialias = NO; but it has no effect.
1
0
787
Nov ’20
Sequoia crashes on call to SSL_CTX_new()
Code I have used for years on Macs now crashes after updating OS: SSL_CTX *sslctx = SSL_CTX_new(SSLv23_client_method()); Reading the posts about TLS changes, I change it to this: SSL_CTX *sslctx = SSL_CTX_new(TLS_client_method()); In fact any method I give results in crash.. Is this a known issue? Is there something I now need to call before calling SSL_CTX_new()?
1
0
150
Sep ’24