Fix compiler issue on windows platform

Introduced by eevee-next world reflective light.
This commit is contained in:
Jeroen Bakker
2023-06-29 16:01:21 +02:00
parent 4fe7626c49
commit 13a6da7646
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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_;