[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Use Metal instead of OpenGL for the main VM Window in OS X (#306)

Tobias Pape notifications at github.com
Fri Jan 11 08:29:10 UTC 2019


krono 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}];

Welcome to the cool world of backing scale factor.

see 
 - https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/krono/highdpi-v2#diff-ab2387a7532e8a34fd44520e207a5e69
 -  https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/krono/highdpi-v2#diff-7c007173fcbc79b3e9984468210d3d11

and the like


-- 
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#discussion_r247033868
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190111/e45e0c96/attachment.html>


More information about the Vm-dev mailing list