summaryrefslogtreecommitdiffstats
path: root/src/quick3d
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-08-06 10:49:59 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-08-10 11:52:17 +0000
commit3a3fa5db6c4243d77b5b5a65604901f75c898875 (patch)
treedc3f7cee69b71fe444b66c1a53f0b8049dfc9d4c /src/quick3d
parent85f8e910fa484296afd19a4568ba939502d562f7 (diff)
ResourceAccessor: allow read-only access to textures
Change-Id: I0a8d20081912f3ff9a037cab74702581b3b02613 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/quick3d')
-rw-r--r--src/quick3d/quick3dscene2d/items/scene2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick3d/quick3dscene2d/items/scene2d.cpp b/src/quick3d/quick3dscene2d/items/scene2d.cpp
index c29f741ae..b5c25431f 100644
--- a/src/quick3d/quick3dscene2d/items/scene2d.cpp
+++ b/src/quick3d/quick3dscene2d/items/scene2d.cpp
@@ -336,7 +336,7 @@ void Scene2D::render()
if (resourceAccessor()->accessResource(RenderBackendResourceAccessor::OutputAttachment,
m_outputId, (void**)&attachmentData, nullptr)) {
- if (!resourceAccessor()->accessResource(RenderBackendResourceAccessor::OGLTexture,
+ if (!resourceAccessor()->accessResource(RenderBackendResourceAccessor::OGLTextureWrite,
attachmentData->m_textureUuid,
(void**)&texture, &textureLock)) {
// Need to call sync even if the texture is not in use