/* note: we need to have Pmin=sqrt(Pmin2) here, but we can avoid
* this since 0.5*log(x) = log(sqrt(x))
*/
- lod = 0.5f * util_fast_log2(Pmin2);
+ lod = 0.5f * log2f(Pmin2);
if (adjustLOD) {
/* from swrast/s_texcombine.c _swrast_texture_span */
const struct gl_texture_object *t,
const struct gl_sampler_object *sampler)
{
- if (!t || !_mesa_is_texture_complete(t, sampler)) {
+ if (!t || !_mesa_is_texture_complete(t, sampler,
+ ctx->Const.ForceIntegerTexNearest)) {
return null_sample_func;
}
else {