rhi: metal: Do not fail pipeline creation upon compiler warnings
Change-Id: I39384de56d74cf9f1d345a5d395cc07030c6a2ab Fixes: QTBUG-80629 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
This commit is contained in:
parent
4d391514b0
commit
7be4bbcbc5
@ -3149,7 +3149,10 @@ id<MTLLibrary> QRhiMetalData::createMetalLib(const QShader &shader, QShader::Var
|
||||
[opts release];
|
||||
// src is autoreleased
|
||||
|
||||
if (err) {
|
||||
// if lib is null and err is non-null, we had errors (fail)
|
||||
// if lib is non-null and err is non-null, we had warnings (success)
|
||||
// if lib is non-null and err is null, there were no errors or warnings (success)
|
||||
if (!lib) {
|
||||
const QString msg = QString::fromNSString(err.localizedDescription);
|
||||
*error = msg;
|
||||
return nil;
|
||||
|
Loading…
Reference in New Issue
Block a user