mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
Fix xcode9.3 -Wunused-lambda-capture errors
Disable the warning on 3rdparty files
${glslang_dir}/hlsl/hlslParseHelper.cpp
Disable the warning on files where fixing it would cause a non-OSX compile error
os/os_specific.cpp
This commit is contained in:
@@ -701,7 +701,7 @@ void CaptureContext::RecompressCapture()
|
||||
// convert from the currently open cap to the destination
|
||||
float progress = 0.0f;
|
||||
|
||||
LambdaThread *th = new LambdaThread([this, cap, destFilename, &progress]() {
|
||||
LambdaThread *th = new LambdaThread([cap, destFilename, &progress]() {
|
||||
cap->Convert(destFilename.toUtf8().data(), "rdc", NULL, [&progress](float p) { progress = p; });
|
||||
});
|
||||
th->start();
|
||||
@@ -984,7 +984,7 @@ void CaptureContext::ExportCapture(const CaptureFileFormat &fmt, const rdcstr &e
|
||||
|
||||
float progress = 0.0f;
|
||||
|
||||
LambdaThread *th = new LambdaThread([this, file, sdfile, ext, exportfile, &progress, &status]() {
|
||||
LambdaThread *th = new LambdaThread([file, sdfile, ext, exportfile, &progress, &status]() {
|
||||
status = file->Convert(exportfile.c_str(), ext.toUtf8().data(), sdfile,
|
||||
[&progress](float p) { progress = p; });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user