forked from pool/libqt5-qt3d
Fabian Vogt
e6f9f9db59
Qt 5.14 Alpha OBS-URL: https://build.opensuse.org/request/show/734738 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.14/libqt5-qt3d?expand=0&rev=2
20 lines
803 B
Diff
20 lines
803 B
Diff
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Subject: Fix no return in nonvoid function error
|
|
|
|
Optflags include -Werror=return-type, which does not like qt3d without this.
|
|
|
|
Index: qt3d-everywhere-src-5.14.0-alpha/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp
|
|
===================================================================
|
|
--- qt3d-everywhere-src-5.14.0-alpha.orig/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp
|
|
+++ qt3d-everywhere-src-5.14.0-alpha/src/render/renderers/opengl/graphicshelpers/imagesubmissioncontext.cpp
|
|
@@ -73,6 +73,9 @@ GLenum glAccessEnumForShaderImageAccess(
|
|
return GL_WRITE_ONLY;
|
|
case QShaderImage::ReadWrite:
|
|
return GL_READ_WRITE;
|
|
+ default:
|
|
+ Q_UNREACHABLE();
|
|
+ return GL_NONE;
|
|
}
|
|
}
|
|
|