diff options
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp | 4 | ||||
-rw-r--r-- | servers/visual_server.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp index 1bc181bea3..113f225c47 100644 --- a/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp +++ b/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp @@ -809,7 +809,7 @@ void RasterizerSceneHighEndRD::_render_list(RenderingDevice::DrawListID p_draw_l } } - ShaderVersion shader_version; + ShaderVersion shader_version = SHADER_VERSION_MAX; switch (p_pass_mode) { case PASS_MODE_COLOR: @@ -855,7 +855,7 @@ void RasterizerSceneHighEndRD::_render_list(RenderingDevice::DrawListID p_draw_l pipeline = &shader->pipelines[cull_variant][primitive][shader_version]; - RD::VertexFormatID vertex_format; + RD::VertexFormatID vertex_format = -1; RID vertex_array_rd; RID index_array_rd; diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index 1e4ee5cb50..da1f3efbab 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -333,7 +333,7 @@ Error VisualServer::_surface_set_data(Array p_arrays, uint32_t p_format, uint32_ uint8_t *vw = r_vertex_array.ptrw(); - uint8_t *iw; + uint8_t *iw = NULL; if (r_index_array.size()) { iw = r_index_array.ptrw(); } |