[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Use Metal instead of OpenGL for the main VM Window in OS X (#306)
Fabio Niephaus
notifications at github.com
Thu Jan 10 23:11:54 UTC 2019
fniephaus commented on this pull request.
> + // Alawys try to fill the texture with the pixels.
+ if ( fullScreendispBitsIndex ) {
+ [self loadTexturesFrom: fullScreendispBitsIndex subRectangle: (clippyIsEmpty ? rect : NSRectFromCGRect(clippy))];
+ //[self loadTexturesFrom: fullScreendispBitsIndex subRectangle: rect];
+ clippyIsEmpty = YES;
+ syncNeeded = NO;
+ }
+
+ MTLRenderPassDescriptor *renderPassDescriptor = self.currentRenderPassDescriptor;
+ if(renderPassDescriptor != nil && self.currentDrawable)
+ {
+ currentCommandBuffer = [graphicsCommandQueue commandBuffer];
+ currentRenderEncoder = [currentCommandBuffer renderCommandEncoderWithDescriptor: renderPassDescriptor];
+
+ // Set the viewport.
+ [currentRenderEncoder setViewport: (MTLViewport){0.0, 0.0, lastFrameSize.size.width, lastFrameSize.size.height}];
When I change this line to
```c
[currentRenderEncoder setViewport: (MTLViewport){0.0, 0.0, lastFrameSize.size.width * 2, lastFrameSize.size.height * 2}];
```
the problem I mentioned in https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/306#issuecomment-453290159 goes away. But this is probably not the right fix.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/306#pullrequestreview-191458644
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190110/d9a8f230/attachment.html>
More information about the Vm-dev
mailing list