mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-03 10:26:42 +00:00
Fix race condition causing hangs and EGL import errors due to concurrent snapshot() calls
This commit is contained in:
1 parent
0403ad147a
commit
e1771de37a
4 files changed
+42
-11
No files matched your search
@@ -436,7 +436,11 @@ namespace va {
|
||||
convert(platf::img_t &img) override {
|
||||
auto &descriptor = (egl::img_descriptor_t &) img;
|
||||
|
||||
if (descriptor.sequence > sequence) {
|
||||
if (descriptor.sequence == 0) {
|
||||
// For dummy images, use a blank RGB texture instead of importing a DMA-BUF
|
||||
rgb = egl::create_blank(img);
|
||||
}
|
||||
else if (descriptor.sequence > sequence) {
|
||||
sequence = descriptor.sequence;
|
||||
|
||||
rgb = egl::rgb_t {};
|
||||
|
||||
Reference in new issue
Block a user