mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-07 13:37:46 +00:00
gl: Wait for shader compilation to complete server-side before attaching to a program
This commit is contained in:
parent
3fc41b6d66
commit
2bb533274c
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue