Initialise color when doing manual resolve on GL

This commit is contained in:
baldurk
2019-12-18 17:08:49 +00:00
parent 7ff0796b89
commit e9bb5a8219
+4
View File
@@ -252,6 +252,8 @@ vec4 SampleTextureFloat4(int type, vec2 pos, float slice, int mipLevel, int samp
{
int sampleCount = -sampleIdx;
col = vec4(0, 0, 0, 0);
// worst resolve you've seen in your life
// it's manually unrolled because doing it as a dynamic loop on
// sampleCount seems to produce crazy artifacts on nvidia - probably a compiler bug
@@ -313,6 +315,8 @@ vec4 SampleTextureFloat4(int type, vec2 pos, float slice, int mipLevel, int samp
{
int sampleCount = -sampleIdx;
col = vec4(0, 0, 0, 0);
// worst resolve you've seen in your life
// it's manually unrolled because doing it as a dynamic loop on
// sampleCount seems to produce crazy artifacts on nvidia - probably a compiler bug