Codechange: [OpenGL] Explicitly assign which framebuffer target receives the colour values.

This commit is contained in:
Michael Lutz
2021-01-16 16:43:24 +01:00
parent 821f30f735
commit 320072c8dc
2 changed files with 19 additions and 2 deletions

View File

@@ -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);",
"}",
};