Small fixes, mostly dupicated code
(cherry picked from commit 856a8226a5)
This commit is contained in:
@ -480,7 +480,6 @@ RID RasterizerSceneGLES2::reflection_probe_instance_create(RID p_probe) {
|
||||
rpi->current_resolution = 0;
|
||||
rpi->dirty = true;
|
||||
|
||||
rpi->last_pass = 0;
|
||||
rpi->index = 0;
|
||||
|
||||
for (int i = 0; i < 6; i++) {
|
||||
|
||||
@ -1061,12 +1061,11 @@ void RasterizerSceneGLES3::gi_probe_instance_set_light_data(RID p_probe, RID p_b
|
||||
if (p_data.is_valid()) {
|
||||
RasterizerStorageGLES3::GIProbeData *gipd = storage->gi_probe_data_owner.getornull(p_data);
|
||||
ERR_FAIL_COND(!gipd);
|
||||
if (gipd) {
|
||||
gipi->tex_cache = gipd->tex_id;
|
||||
gipi->cell_size_cache.x = 1.0 / gipd->width;
|
||||
gipi->cell_size_cache.y = 1.0 / gipd->height;
|
||||
gipi->cell_size_cache.z = 1.0 / gipd->depth;
|
||||
}
|
||||
|
||||
gipi->tex_cache = gipd->tex_id;
|
||||
gipi->cell_size_cache.x = 1.0 / gipd->width;
|
||||
gipi->cell_size_cache.y = 1.0 / gipd->height;
|
||||
gipi->cell_size_cache.z = 1.0 / gipd->depth;
|
||||
}
|
||||
}
|
||||
void RasterizerSceneGLES3::gi_probe_instance_set_transform_to_data(RID p_probe, const Transform &p_xform) {
|
||||
|
||||
Reference in New Issue
Block a user