You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Properly handle wireframe mode in RendererRD pipeline cache
Makes wireframe get cached properly so that it doesn't keep being recreated. Fixes #76237.
This commit is contained in:
@@ -76,6 +76,8 @@ public:
|
||||
#endif
|
||||
|
||||
spin_lock.lock();
|
||||
p_wireframe |= rasterization_state.wireframe;
|
||||
|
||||
RID result;
|
||||
for (uint32_t i = 0; i < version_count; i++) {
|
||||
if (versions[i].vertex_id == p_vertex_format_id && versions[i].framebuffer_id == p_framebuffer_format_id && versions[i].wireframe == p_wireframe && versions[i].render_pass == p_render_pass && versions[i].bool_specializations == p_bool_specializations) {
|
||||
|
||||
Reference in New Issue
Block a user