File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,17 @@ - (id) initWithDepthFormat:(unsigned int)depthFormat withPixelFormat:(unsigned i
55
55
{
56
56
if (! sharegroup)
57
57
{
58
- context_ = [[EAGLContext alloc ] initWithAPI: kEAGLRenderingAPIOpenGLES3 ];
58
+ // multisampling conflict with GLES3, refer to https://github.com/cocos2d/cocos2d-x/issues/17767
59
+ if (!multiSampling)
60
+ context_ = [[EAGLContext alloc ] initWithAPI: kEAGLRenderingAPIOpenGLES3 ];
59
61
if (! context_)
60
62
context_ = [[EAGLContext alloc ] initWithAPI: kEAGLRenderingAPIOpenGLES2 ];
61
63
}
62
64
else
63
65
{
64
- context_ = [[EAGLContext alloc ] initWithAPI: kEAGLRenderingAPIOpenGLES3 sharegroup: sharegroup];
66
+ // multisampling conflict with GLES3, refer to https://github.com/cocos2d/cocos2d-x/issues/17767
67
+ if (!multiSampling)
68
+ context_ = [[EAGLContext alloc ] initWithAPI: kEAGLRenderingAPIOpenGLES3 sharegroup: sharegroup];
65
69
if (!context_)
66
70
context_ = [[EAGLContext alloc ] initWithAPI: kEAGLRenderingAPIOpenGLES2 sharegroup: sharegroup];
67
71
}
You can’t perform that action at this time.
0 commit comments