Fix compiler issue on windows platform
Introduced by eevee-next world reflective light.
This commit is contained in:
@@ -9,12 +9,13 @@ namespace blender::eevee {
|
||||
void ReflectionProbeModule::init()
|
||||
{
|
||||
if (!initialized_) {
|
||||
const int max_mipmap_levels = log(max_resolution_) + 1;
|
||||
cubemaps_tx_.ensure_cube_array(GPU_RGBA16F,
|
||||
max_resolution_,
|
||||
max_probes_,
|
||||
GPU_TEXTURE_USAGE_SHADER_READ | GPU_TEXTURE_USAGE_ATTACHMENT,
|
||||
NULL,
|
||||
max_mipmap_levels_);
|
||||
max_mipmap_levels);
|
||||
GPU_texture_mipmap_mode(cubemaps_tx_, true, true);
|
||||
initialized_ = true;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ class ReflectionProbeModule {
|
||||
* Must be a power of two; intension to be used as a cubemap atlas.
|
||||
*/
|
||||
static constexpr int max_resolution_ = 2048;
|
||||
static constexpr int max_mipmap_levels_ = log(max_resolution_) + 1;
|
||||
|
||||
Instance &instance_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user