summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/floattexture
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/rhi/floattexture')
-rw-r--r--tests/manual/rhi/floattexture/CMakeLists.txt6
-rw-r--r--tests/manual/rhi/floattexture/floattexture.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/manual/rhi/floattexture/CMakeLists.txt b/tests/manual/rhi/floattexture/CMakeLists.txt
index 7748388c54..0fde76ed51 100644
--- a/tests/manual/rhi/floattexture/CMakeLists.txt
+++ b/tests/manual/rhi/floattexture/CMakeLists.txt
@@ -1,4 +1,5 @@
-# Generated from floattexture.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## floattexture Binary:
@@ -8,7 +9,7 @@ qt_internal_add_manual_test(floattexture
GUI
SOURCES
floattexture.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Gui
Qt::GuiPrivate
)
@@ -37,5 +38,4 @@ qt_internal_add_resource(floattexture "floattexture"
)
-#### Keys ignored in scope 1:.:.:floattexture.pro:<TRUE>:
# TEMPLATE = "app"
diff --git a/tests/manual/rhi/floattexture/floattexture.cpp b/tests/manual/rhi/floattexture/floattexture.cpp
index 8996b86b74..8cd41bcc58 100644
--- a/tests/manual/rhi/floattexture/floattexture.cpp
+++ b/tests/manual/rhi/floattexture/floattexture.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2018 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "../shared/examplefw.h"
#include <qmath.h>
@@ -242,7 +242,7 @@ void Window::customInit()
qint32 flip = 1;
d.initialUpdates->updateDynamicBuffer(d.ubuf, 64, 4, &flip);
- QRhiTextureUploadDescription desc({ 0, 0, { floatData.constData(), int(floatData.size()) } });
+ QRhiTextureUploadDescription desc({ 0, 0, { floatData.constData(), quint32(floatData.size()) } });
d.initialUpdates->uploadTexture(d.tex, desc);
}