mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +02:00
Fix error message when sending buffers to unused variables
This commit is contained in:
@@ -166,6 +166,12 @@ void Shader::mapActiveUniforms()
|
|||||||
u.storageTextureFormat = reflectionit->second.format;
|
u.storageTextureFormat = reflectionit->second.format;
|
||||||
u.access = reflectionit->second.access;
|
u.access = reflectionit->second.access;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// No reflection info - maybe glslang was better at detecting
|
||||||
|
// dead code than the driver's compiler?
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
StorageTextureBinding binding = {};
|
StorageTextureBinding binding = {};
|
||||||
binding.gltexture = gl.getDefaultTexture(u.textureType, u.dataBaseType);
|
binding.gltexture = gl.getDefaultTexture(u.textureType, u.dataBaseType);
|
||||||
@@ -372,6 +378,12 @@ void Shader::mapActiveUniforms()
|
|||||||
u.bufferMemberCount = reflectionit->second.memberCount;
|
u.bufferMemberCount = reflectionit->second.memberCount;
|
||||||
u.access = reflectionit->second.access;
|
u.access = reflectionit->second.access;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// No reflection info - maybe glslang was better at detecting
|
||||||
|
// dead code than the driver's compiler?
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure previously set uniform data is preserved, and shader-
|
// Make sure previously set uniform data is preserved, and shader-
|
||||||
// initialized values are retrieved.
|
// initialized values are retrieved.
|
||||||
|
|||||||
Reference in New Issue
Block a user