Vulkan: allow writing to gl_FragColor without framebuffer color attachment (#2452)

This commit is contained in:
pezcode
2021-04-07 16:21:02 +02:00
committed by GitHub
parent 9a91bc3496
commit 870d14110b
2 changed files with 10 additions and 16 deletions

View File

@@ -7,8 +7,5 @@
void main()
{
// Vulkan does not like shader writing to a target that is not attached
#ifndef BGFX_SHADER_LANGUAGE_SPIRV
gl_FragColor = vec4_splat(0.0);
#endif
}