mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-09 17:25:18 -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_)
|
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());
|
glAttachShader(m_id, shader_.id());
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user