mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
iOS: fix shader compilation with metal
This commit is contained in:
@@ -308,6 +308,11 @@ Shader::Shader(id<MTLDevice> device, StrongRef<love::graphics::ShaderStage> stag
|
||||
bool forcedefault = false;
|
||||
bool forwardcompat = true;
|
||||
|
||||
#ifdef LOVE_IOS
|
||||
defaultversion = 320;
|
||||
defaultprofile = EEsProfile;
|
||||
#endif
|
||||
|
||||
if (!tshader->parse(&defaultTBuiltInResource, defaultversion, defaultprofile, forcedefault, forwardcompat, EShMsgSuppressWarnings))
|
||||
{
|
||||
const char *stagename = "unknown";
|
||||
|
||||
Reference in New Issue
Block a user