I have been making a game in CLion(CLion: A Cross-Platform IDE for C and C++ by JetBrains) on my mac. Everything worked fine.
Then i tried run the game from xcode and i have got crashes.
validateFunctionArguments:3577: failed assertion Fragment Function(xlatMtlMain2): missing sampler binding at index 0 for _mtlsmp_u_render_texture.
-[MTLDebugRenderCommandEncoder setScissorRect:]:2702: failed assertion (rect.x(0) + rect.width(1920))(1920) must be <= render pass width(1792)
The first crash happens i think there
state->setTexture(u_renderTexture, 0, renderTexture->getSprite()->getTexture()->getBackendTexture());
State is a backend::ProgramState
This crashes happen on both Apple platforms only on xcode. CLion works fine.