Commit 81676270 authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Fix clang build

parent ce7d7b19
......@@ -82,13 +82,14 @@ void Window::customInit()
QRhiTextureUploadDescription desc;
QImage img = QImage(":/c.png").mirrored(); // just use the same image for all faces for now
auto texLayer = QRhiTextureUploadDescription::Layer({ QRhiTextureUploadDescription::Layer::MipLevel(img) });
desc.layers
<< QRhiTextureUploadDescription::Layer({ { img } }) // +X
<< QRhiTextureUploadDescription::Layer({ { img } }) // -X
<< QRhiTextureUploadDescription::Layer({ { img } }) // +Y
<< QRhiTextureUploadDescription::Layer({ { img } }) // -Y
<< QRhiTextureUploadDescription::Layer({ { img } }) // +Z
<< QRhiTextureUploadDescription::Layer({ { img } }); // -Z
<< texLayer // +X
<< texLayer // -X
<< texLayer // +Y
<< texLayer // -Y
<< texLayer // +Z
<< texLayer; // -Z
d.initialUpdates->uploadTexture(d.tex, desc);
d.sampler = m_r->newSampler(QRhiSampler::Linear, QRhiSampler::Linear, QRhiSampler::None,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment