Skip to content

Commit

Permalink
FIX: fix a shader loading failed issue on macos 11.x of m1 processor
Browse files Browse the repository at this point in the history
Change-Id: I39a4d387a0c80743cd5b7a78547c416b387608fd
  • Loading branch information
lanewei120 committed Dec 26, 2022
1 parent 030efb3 commit 400ce3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/GLShadersManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ std::pair<bool, std::string> GLShadersManager::init()
// triangle normals inside fragment shader have the right direction.
if (platform_flavor() == PlatformFlavor::OSXOnArm && wxPlatformInfo::Get().GetOSMajorVersion() < 12) {
//if (GUI::wxGetApp().is_gl_version_greater_or_equal_to(3, 0))
valid &= append_shader("mm_gouraud", {"mm_gouraud_130.vs", "mm_gouraud_130.fs"}, {"FLIP_TRIANGLE_NORMALS"sv});
valid &= append_shader("mm_gouraud", {"mm_gouraud_wireframe.vs", "mm_gouraud_wireframe.fs"}, {"FLIP_TRIANGLE_NORMALS"sv});
//else
// valid &= append_shader("mm_gouraud", {"mm_gouraud.vs", "mm_gouraud.fs"}, {"FLIP_TRIANGLE_NORMALS"sv});
}
Expand Down

0 comments on commit 400ce3b

Please sign in to comment.