mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-10-09 17:35:22 +00:00
[engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.12 版本
This commit is contained in:
@@ -613,7 +613,7 @@ void DeviceGraphics::initCaps()
|
||||
|
||||
GL_CHECK(glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &_caps.maxTextureUnits));
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS ||CC_TARGET_PLATFORM == CC_PLATFORM_OPENHARMONY)
|
||||
// IDEA: how to get these infomations
|
||||
_caps.maxColorAttatchments = 1;
|
||||
_caps.maxDrawBuffers = 1;
|
||||
@@ -760,13 +760,12 @@ void DeviceGraphics::commitBlendStates()
|
||||
ENUM_CLASS_TO_GLENUM(_nextState->blendSrcAlpha),
|
||||
ENUM_CLASS_TO_GLENUM(_nextState->blendDstAlpha)));
|
||||
}
|
||||
}
|
||||
|
||||
if (_currentState->blendEq != _nextState->blendEq ||
|
||||
if (_currentState->blendEq != _nextState->blendEq ||
|
||||
_currentState->blendAlphaEq != _nextState->blendAlphaEq)
|
||||
{
|
||||
GL_CHECK(glBlendEquationSeparate(ENUM_CLASS_TO_GLENUM(_nextState->blendEq),
|
||||
ENUM_CLASS_TO_GLENUM(_nextState->blendAlphaEq)));
|
||||
{
|
||||
GL_CHECK(glBlendEquationSeparate(ENUM_CLASS_TO_GLENUM(_nextState->blendEq),
|
||||
ENUM_CLASS_TO_GLENUM(_nextState->blendAlphaEq)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user