Commit e7e81fc7 authored by Vinson Lee's avatar Vinson Lee
Browse files

Add log2f definition for MSVC.

Fixes MSVC build error.
Signed-off-by: default avatarVinson Lee <>
parent c56a4410
......@@ -91,6 +91,13 @@ static float max3(float x, float y, float z)
return max2(x, max2(y, z));
#if defined(_MSC_VER)
static float log2f(float x)
return logf(x) * 1.442695041f;
* Compute the number of miplevels, as well as the dimensions (width, height,
* depth/number of array slices) of each level.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment