mirror of
https://github.com/libretro/pcsx2.git
synced 2024-11-28 20:00:44 +00:00
GSdx-hw OGL: log if tex size gt PBO segment size.
Texture data may be corrupted in this case due to missing fences synchronization.
This commit is contained in:
parent
63982bf6b7
commit
6feb59fef5
@ -121,6 +121,11 @@ namespace PboPool {
|
||||
// Align current transfer on the start of the segment
|
||||
m_offset = m_seg_size * segment_next;
|
||||
|
||||
if (m_size > m_seg_size) {
|
||||
fprintf(stderr, "BUG: PBO Map size %u is bigger than a single segment %u. Crossing more than one fence is not supported yet, texture data may be corrupted.\n", m_size, m_seg_size);
|
||||
// TODO Synchronize all crossed fences
|
||||
}
|
||||
|
||||
// protect the left segment
|
||||
m_fence[segment_current] = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user