Only use pinned memory on AMD GPUs.

As per in Discord, for some reason Intel driver in Linux(?) expose
pinned memory extension and causes driver crash in one test case.
This commit is contained in:
Miku AuahDark
2020-12-15 10:25:38 +08:00
parent 0b06d0d1f9
commit 81272ba5b5
+1 -1
View File
@@ -499,7 +499,7 @@ love::graphics::StreamBuffer *CreateStreamBuffer(BufferType mode, size_t size)
{
// AMD's pinned memory seems to be faster than persistent mapping,
// on AMD GPUs.
if (GLAD_AMD_pinned_memory)
if (GLAD_AMD_pinned_memory && gl.getVendor() == OpenGL::VENDOR_AMD)
{
try
{