mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-12 16:19:44 -06:00
gl: Wait for shader compilation to complete server-side before attaching to a program
This commit is contained in:
parent
3fc41b6d66
commit
2bb533274c
@ -183,6 +183,12 @@ namespace gl
|
||||
|
||||
program& attach(const shader& shader_)
|
||||
{
|
||||
if (const auto& comp_fence = shader_.get_compile_fence_sync();
|
||||
!comp_fence.check_signaled())
|
||||
{
|
||||
comp_fence.server_wait_sync();
|
||||
}
|
||||
|
||||
glAttachShader(m_id, shader_.id());
|
||||
return *this;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user