mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Feat] (MG_Backend/DirectGLES): sync PBO
This commit is contained in:
@@ -34,6 +34,11 @@ namespace MobileGL::MG_Backend::DirectGLES {
|
|||||||
buffersToSync.push_back(possibleIBO);
|
buffersToSync.push_back(possibleIBO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto& pbo = MG_State::pGLContext->GetBufferBindingSlot(BufferTarget::PixelUnpack).GetBoundObject();
|
||||||
|
if (pbo) {
|
||||||
|
buffersToSync.push_back(pbo);
|
||||||
|
}
|
||||||
|
|
||||||
// Do real sync
|
// Do real sync
|
||||||
for (auto& bufferObject : buffersToSync) {
|
for (auto& bufferObject : buffersToSync) {
|
||||||
const auto& backendBufferIt = g_backendBufferObjects.find(bufferObject);
|
const auto& backendBufferIt = g_backendBufferObjects.find(bufferObject);
|
||||||
|
|||||||
Reference in New Issue
Block a user