diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-16 16:43:24 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | 320072c8dc03d651f8278a41fc09346c8ed5a174 (patch) | |
tree | 79985edff96c1c15596412d2f00380ed77b84f76 /src/table | |
parent | 821f30f7358ec3f0217b05a8d4af7101daf61678 (diff) | |
download | openttd-320072c8dc03d651f8278a41fc09346c8ed5a174.tar.xz |
Codechange: [OpenGL] Explicitly assign which framebuffer target receives the colour values.
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/opengl_shader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/opengl_shader.h b/src/table/opengl_shader.h index e3d5e0b3a..ad235be38 100644 --- a/src/table/opengl_shader.h +++ b/src/table/opengl_shader.h @@ -37,7 +37,7 @@ static const char *_frag_shader_direct[] = { "uniform sampler2D colour_tex;", "varying vec2 colour_tex_uv;", "void main() {", - " gl_FragColor = texture2D(colour_tex, colour_tex_uv);", + " gl_FragData[0] = texture2D(colour_tex, colour_tex_uv);", "}", }; |