Project

General

Profile

« Previous | Next » 

Revision 2aef1f4d

Added by Leszek Koltunski almost 6 years ago

OIT: fixes for Mali: fix a broken loop in the oitRender fragment shader that resulted in flashing.

View differences:

src/main/res/raw/oit_render_fragment_shader.glsl
67 67
    const float S= 2147483647.0;
68 68
    gl_FragDepth = 1.0 - 2.0*float(u_Records[curr+1u])/S;
69 69
    vec4 color   = convert(u_Records[curr+2u]);
70
    curr = u_Records[curr];
70 71

  
71 72
    while (curr != 0u)
72 73
      {
73
      curr = u_Records[curr];
74 74
      color = blend( color , convert(u_Records[curr+2u]) );
75
      curr = u_Records[curr];
75 76
      }
76 77

  
77 78
    fragColor = color;

Also available in: Unified diff