Skip to content

Commit

Permalink
Fix issues on Mac (cocos#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pandamicro committed Apr 10, 2024
1 parent b90f70c commit 5fd303e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions editor/assets/chunks/common/texture/texture-lod.chunk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.

#pragma extension([GL_EXT_shader_texture_lod, __VERSION__ < 130])
#pragma extension([GL_OES_EGL_image_external, __VERSION__ >= 100, require])
#pragma extension([GL_OES_EGL_image_external_essl3, __VERSION__ >= 300, require])
// #pragma extension([GL_OES_EGL_image_external, __VERSION__ >= 100, require])
// #pragma extension([GL_OES_EGL_image_external_essl3, __VERSION__ >= 300, require])



Expand Down
2 changes: 1 addition & 1 deletion native/cocos/renderer/gfx-base/SPIRVUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void SPIRVUtils::compileGLSL(ShaderStageFlagBit type, const ccstd::string &sourc

auto messages = static_cast<EShMessages>(EShMsgSpvRules | EShMsgVulkanRules);

if (!_shader->parse(GetDefaultResources(), _clientInputSemanticsVersion, false, messages)) {
if (!_shader->parse(&glslang::DefaultTBuiltInResource, _clientInputSemanticsVersion, false, messages)) {
CC_LOG_ERROR("GLSL Parsing Failed:\n%s\n%s", _shader->getInfoLog(), _shader->getInfoDebugLog());
}

Expand Down

0 comments on commit 5fd303e

Please sign in to comment.