Browse Source

TextureTools: fix driver crash on AMD.

For some reason this was causing the inner for cycle to loop
indefinitely on AMD cards. Not a problem or NVidia drivers, Intel
Windows drivers or Mesa. Thanks a lot to @LB-- for the investigation.
pull/118/head
Vladimír Vondruš 11 years ago
parent
commit
0383592d1b
  1. 2
      src/Magnum/TextureTools/DistanceFieldShader.frag

2
src/Magnum/TextureTools/DistanceFieldShader.frag

@ -107,7 +107,7 @@ void main() {
/* Go in circles around the point and find nearest value */
int radiusLimit = radius;
for(int i = 1; i <= radiusLimit; ++i) {
for(int j = 0, jmax = i*2; j != jmax; ++j) {
for(int j = 0, jmax = i*2; j < jmax; ++j) {
#ifdef TEXELFETCH_USABLE
const lowp ivec2 offset = ivec2(-i+j, i);
#else

Loading…
Cancel
Save