From ebfb17ec6c56087a22ce86ec630643ec4d9d80a1 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 9 Feb 2021 11:08:11 +0100 Subject: [PATCH] gpu/gl: add support for read-only images to BindImageTexture Signed-off-by: Elias Naur --- gpu/gl/backend.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpu/gl/backend.go b/gpu/gl/backend.go index 04d915ab..401252e8 100644 --- a/gpu/gl/backend.go +++ b/gpu/gl/backend.go @@ -334,6 +334,8 @@ func (b *Backend) BindImageTexture(unit int, tex backend.Texture, access backend switch access { case backend.AccessWrite: acc = glimpl.WRITE_ONLY + case backend.AccessRead: + acc = glimpl.READ_ONLY default: panic("unsupported access bits") }