Whitelist mapbuffer usage to NVIDIA only (should maybe add Qualcomm too), it's murder on Mali

This commit is contained in:
Henrik Rydgård committed 2018-02-12 11:46:19 +01:00
1 parent 4e5fb6e286
commit 1b9c2f26f9
6 files changed
+12 -5

No files matched your search

+2 -2
View File
@@ -712,10 +712,10 @@ void *GLRBuffer::Map(GLbitfield access) {
}
#endif
p = glMapBufferRange(target_, 0, size_, access);
} else if (gl_extensions.VersionGEThan(3, 0, 0)) {
} else if (gl_extensions.VersionGEThan(3, 0, 0) && !(gl_extensions.bugs & BUG_ANY_MAP_BUFFER_RANGE_SLOW)) {
// GLES3 or desktop 3.
p = glMapBufferRange(target_, 0, size_, access);
} else {
} else if (!(gl_extensions.bugs & BUG_ANY_MAP_BUFFER_RANGE_SLOW)) {
#ifndef USING_GLES2
p = glMapBuffer(target_, GL_READ_WRITE);
#endif