From a49886ba29d0f28d3d4fe562a935defdaeb7a738 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 21 Sep 2022 22:03:22 +0200 Subject: Replace deprecated gl_FragColor --- channel_2d_gl_interop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'channel_2d_gl_interop.py') diff --git a/channel_2d_gl_interop.py b/channel_2d_gl_interop.py index eaf2c46..8e52d78 100644 --- a/channel_2d_gl_interop.py +++ b/channel_2d_gl_interop.py @@ -140,8 +140,10 @@ particle_fragment_shader = shaders.compileShader(""" in vec3 color; +layout(location = 0) out vec4 frag_color; + void main(){ - gl_FragColor = vec4(color.xyz, 0.0); + frag_color = vec4(color.xyz, 0.0); }""", GL_FRAGMENT_SHADER) particle_vertex_shader = shaders.compileShader(Template(""" -- cgit v1.2.3