diff options
author | Even Oscar Andersen <[email protected]> | 2024-04-17 12:52:47 +0200 |
---|---|---|
committer | Even Oscar Andersen <[email protected]> | 2024-04-19 12:39:01 +0200 |
commit | 793f81b1c67b87b49d7f519902e2049ba19e4c18 (patch) | |
tree | 36b2cb48268a24b480e8dce1d4cfe5cdfdf52432 /examples/quick | |
parent | 9c9a4558fa7ce67eb89249405a3afb5dc5ccad9b (diff) |
Set correct shader version for CustomRenderNode example
The custom rendernode example uses the default GLSL which is:
"100es,120,150". The problem with this is that gl_VertexId only
exists in OpenGL ES 3.00 or later, and GLSL 1.30 and later
end result is that the shader compiles but does not run.
Change-Id: I1ac18e381b1e8b28368f67e4140f4bb43bb17e62
Reviewed-by: Laszlo Agocs <[email protected]>
Diffstat (limited to 'examples/quick')
-rw-r--r-- | examples/quick/scenegraph/customrendernode/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/customrendernode/CMakeLists.txt b/examples/quick/scenegraph/customrendernode/CMakeLists.txt index 1c48410fc7..c00f019839 100644 --- a/examples/quick/scenegraph/customrendernode/CMakeLists.txt +++ b/examples/quick/scenegraph/customrendernode/CMakeLists.txt @@ -29,6 +29,8 @@ qt_add_qml_module(customrendernode ) qt6_add_shaders(customrendernode "shaders" + # gl_VertexId is in earliest OpenGL ES 3.00, and GLSL 130 + GLSL "300 es,130" PREFIX "/scenegraph/customrendernode" FILES |