fix ewa_curvature on nvidia

Nvidia's compiler was the picky one for once.
This commit is contained in:
hizzlekizzle 2018-12-30 14:21:58 -06:00 committed by GitHub
parent 895b325026
commit 0a951b97eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ vec2 textureQueryLODEWA(sampler2D tex, vec2 du, vec2 dv, int psize){
}
float lod = log2(minorLength / TEXELS_PER_PIXEL);
lod = clamp (lod, 0.0, log2(psize));
lod = clamp (lod, 0.0, log2(float(psize)));
return vec2(lod, e);
}