mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Disable pinned memory for AMD mesa drivers
This commit is contained in:
parent
51136681df
commit
005e6796b8
2 changed files with 3 additions and 2 deletions
|
@ -356,8 +356,7 @@ std::unique_ptr<StreamBuffer> StreamBuffer::Create(u32 type, u32 size)
|
|||
{
|
||||
// pinned memory is much faster than buffer storage on AMD cards
|
||||
if (g_ogl_config.bSupportsGLPinnedMemory &&
|
||||
!(DriverDetails::HasBug(DriverDetails::BUG_BROKEN_PINNED_MEMORY) &&
|
||||
type == GL_ELEMENT_ARRAY_BUFFER))
|
||||
!(DriverDetails::HasBug(DriverDetails::BUG_BROKEN_PINNED_MEMORY)))
|
||||
return std::make_unique<PinnedMemory>(type, size);
|
||||
|
||||
// buffer storage works well in most situations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue