Thank you for the report and fix. qtdemo addon now updated.
On Sat, May 16, 2020 at 8:51 AM Edward C H Deveaux <[email protected]> wrote: > to: jsoftware; > > Manjaro x86_64 Liunux, j901 and j902 beta. > > Error occurs on J901 or J902 beta in the same way. Defining an output > value appears to correct the error. > > Solution may only work on Open GL Version 3.00 and greater. > > What is the correct way to fix this issue. > > Thanks > > ------------------------------------------------------------------------------------------------------------------------------------ > > > > 1. Error in shader qt demo on Manjaro Linux > > ---------------------------------------------------------------------------------------------------------------------------------------- > > > > [ed@Josara1 tmp]$ uname -a Linux Josara1 5.6.11-1-MANJARO #1 SMP PREEMPT > Wed May 6 10:20:32 UTC 2020 x86_64 GNU/Linux > > JVERSION > > Engine: j902/j64avx2/linux > > Beta-a: commercial/2020-05-08T16:29:05 clang-8-0-0 > > Library: 9.02.03 > > Qt IDE: 1.8.7/5.14.2(5.14.2) > > Platform: Linux 64 > > Installer: J902 install > > InstallPath: /home/ed/j902 > > Contact: www.jsoftware.com > > GL_VERSION: 4.6 (Compatibility Profile) Mesa 20.0.6 > > GL_VENDOR: X.Org > > GL_RENDERER: AMD Radeon R9 200 Series (TONGA, DRM 3.36.0, > 5.6.11-1-MANJARO, LLVM 10.0.0) > > GL_SHADING_LANGUAGE_VERSION: 4.60 > > #version 460 core > > in vec3 vertex; > > in vec3 color; > > out vec4 v_color; > > uniform mat4 mvp; > > void main(void) > > { > > gl_Position = mvp * vec4(vertex,1.0); > > v_color = vec4(color,1.0); > > } > > #version 460 core > > in vec4 v_color; > > void main(void) > > { > > gl_FragColor = v_color; > > } > > 0:5(2): error: `gl_FragColor' undeclared > > 0:5(2): error: value of type vec4 cannot be assigned to variable of type > error > > #version 460 core > > in vec4 v_color; > > void main(void) > > { > > gl_FragColor = v_color; > > } > > > -------------------------------------------------------------------------------------------------------------------------------------------- > > 2. Defining an output value in the shader appears to correct the error. > > GL_VERSION: 4.6 (Compatibility Profile) Mesa 20.0.6 > > GL_VENDOR: X.Org > > GL_RENDERER: AMD Radeon R9 200 Series (TONGA, DRM 3.36.0, > 5.6.11-1-MANJARO, LLVM 10.0.0) > > GL_SHADING_LANGUAGE_VERSION: 4.60 > > #version 460 core > > in vec3 vertex; > > in vec3 color; > > out vec4 v_color; > > uniform mat4 mvp; > > void main(void) > > { > > gl_Position = mvp * vec4(vertex,1.0); > > v_color = vec4(color,1.0); > > } > > #version 460 core > > in vec4 v_color; > > out vec4 FragColor; > > void main(void) > > { > > FragColor = v_color; > > } > > Thanks > > Ed Deveaux > > [email protected] > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
