diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2017-03-14 10:02:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-14 10:02:05 +0100 |
| commit | 31bb41c53273da6128c4dfd61af56c52ddbd0b3d (patch) | |
| tree | da95c973fc75e5b4a8dd0aded27731cdfadc1156 /Source/Core/VideoBackends/OGL/StreamBuffer.cpp | |
| parent | ef931d5339e63463111699e90047b082497fb56b (diff) | |
| parent | 005e6796b85341a3e79fc93e49337bb8d4e67fdf (diff) | |
Merge pull request #4973 from z0z0z/master
Disable pinned memory for AMD mesa drivers
Diffstat (limited to 'Source/Core/VideoBackends/OGL/StreamBuffer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/StreamBuffer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/StreamBuffer.cpp b/Source/Core/VideoBackends/OGL/StreamBuffer.cpp index 91a63389a7..4148f5fee3 100644 --- a/Source/Core/VideoBackends/OGL/StreamBuffer.cpp +++ b/Source/Core/VideoBackends/OGL/StreamBuffer.cpp @@ -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 |
