Skip to content

Commit f1dbc31

Browse files
drelaptopminggo
authored andcommitted
fix a mistake of "V3 multisampling support cocos2d#18632" (cocos2d#18674)
1 parent 140c186 commit f1dbc31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/cpp-template-default/proj.ios_mac/ios/RootViewController.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ - (void)loadView {
4949
depthFormat: cocos2d::GLViewImpl::_depthFormat
5050
preserveBackbuffer: NO
5151
sharegroup: nil
52-
multiSampling: cocos2d::GLViewImpl::_multisamling
53-
numberOfSamples: cocos2d::GLViewImpl::_samples ];
52+
multiSampling: cocos2d::GLViewImpl::_multisamplingCount > 0 ? YES : NO
53+
numberOfSamples: cocos2d::GLViewImpl::_multisamplingCount ];
5454

5555
// Enable or disable multiple touches
5656
[eaglView setMultipleTouchEnabled:NO];

0 commit comments

Comments
 (0)