Moved variables closer to usage to fix unused variable warning
This commit is contained in:
parent
cb73a6e9f9
commit
55fc56bfd4
1 changed files with 2 additions and 2 deletions
|
@ -2063,8 +2063,6 @@ void RasterizerSceneGLES3::_render_list_template(RenderListParameters *p_params,
|
|||
GLES3::MeshStorage *mesh_storage = GLES3::MeshStorage::get_singleton();
|
||||
GLES3::ParticlesStorage *particles_storage = GLES3::ParticlesStorage::get_singleton();
|
||||
GLES3::MaterialStorage *material_storage = GLES3::MaterialStorage::get_singleton();
|
||||
GLES3::TextureStorage *texture_storage = GLES3::TextureStorage::get_singleton();
|
||||
GLES3::Config *config = GLES3::Config::get_singleton();
|
||||
|
||||
GLuint prev_vertex_array_gl = 0;
|
||||
GLuint prev_index_array_gl = 0;
|
||||
|
@ -2097,6 +2095,8 @@ void RasterizerSceneGLES3::_render_list_template(RenderListParameters *p_params,
|
|||
}
|
||||
|
||||
if constexpr (p_pass_mode == PASS_MODE_COLOR || p_pass_mode == PASS_MODE_COLOR_TRANSPARENT) {
|
||||
GLES3::TextureStorage *texture_storage = GLES3::TextureStorage::get_singleton();
|
||||
GLES3::Config *config = GLES3::Config::get_singleton();
|
||||
glActiveTexture(GL_TEXTURE0 + config->max_texture_image_units - 2);
|
||||
GLuint texture_to_bind = texture_storage->get_texture(texture_storage->texture_gl_get_default(GLES3::DEFAULT_GL_TEXTURE_CUBEMAP_BLACK))->tex_id;
|
||||
if (p_render_data->environment.is_valid()) {
|
||||
|
|
Loading…
Reference in a new issue