summaryrefslogtreecommitdiffstats
path: root/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp')
-rw-r--r--src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp b/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp
index a5633c306..ca600f994 100644
--- a/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp
+++ b/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp
@@ -72,8 +72,10 @@ GLenum glAccessEnumForShaderImageAccess(QShaderImage::Access access)
case QShaderImage::WriteOnly:
return GL_WRITE_ONLY;
case QShaderImage::ReadWrite:
- return GL_READ_WRITE;
+ default:
+ break;
}
+ return GL_READ_WRITE;
}
GLenum glImageFormatToGL(QShaderImage::ImageFormat format)