fix: compilation errors
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
***/
|
||||
#include <QString>
|
||||
|
||||
#include "serializer230220.h"
|
||||
|
||||
@@ -190,9 +191,9 @@ ProjectSerializer230220::LoadData ProjectSerializer230220::Load(Project *project
|
||||
} else if (attr.name() == QStringLiteral("ptr")) {
|
||||
ptr = attr.value().toULongLong();
|
||||
} else if (attr.name() == QStringLiteral("items")) {
|
||||
QVector<QStringRef> l = attr.value().split(',');
|
||||
QVector<QStringView> l = attr.value().split(',');
|
||||
items.reserve(l.size());
|
||||
for (const QStringRef &s : l) {
|
||||
for (const QStringView &s : l) {
|
||||
items.append(s.toULongLong());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -241,8 +241,8 @@ bool Renderer::GetColorContext(const ColorTransformJob &color_job, Renderer::Col
|
||||
unsigned int width = 0, height = 0;
|
||||
OCIO::GpuShaderDesc::TextureType channel = OCIO::GpuShaderDesc::TEXTURE_RGB_CHANNEL;
|
||||
OCIO::Interpolation interpolation = OCIO::INTERP_LINEAR;
|
||||
|
||||
shader_desc->getTexture(i, tex_name, sampler_name, width, height, channel, interpolation);
|
||||
OCIO::GpuShaderDesc::TextureDimensions dimensions=OCIO::GpuShaderDesc::TEXTURE_2D;
|
||||
shader_desc->getTexture(i, tex_name, sampler_name, width, height, channel, dimensions, interpolation);
|
||||
|
||||
if (!tex_name || !*tex_name
|
||||
|| !sampler_name || !*sampler_name
|
||||
|
||||
Reference in New Issue
Block a user