Check if gl_Frag[Data/Color] are not already patched (#2661)

This commit is contained in:
Christophe Dehais
2021-11-18 22:12:38 +01:00
committed by GitHub
parent 5b321e6669
commit 08cd17e3b8
2 changed files with 19 additions and 11 deletions

View File

@@ -1728,8 +1728,8 @@ namespace bgfx
}
if (hasFragColor)
{
preprocessor.writef("#define gl_FragColor bgfx_FragData0\n");
preprocessor.writef("out mediump vec4 bgfx_FragData0;\n");
preprocessor.writef("#define gl_FragColor bgfx_FragColor\n");
preprocessor.writef("out mediump vec4 bgfx_FragColor;\n");
}
else if (numFragData)
{