mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-27 04:11:05 +00:00
Initialise color when doing manual resolve on GL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user