浏览代码

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.
Miku AuahDark 4 年之前
父节点
当前提交
81272ba5b5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/opengl/StreamBuffer.cpp

+ 1 - 1
src/modules/graphics/opengl/StreamBuffer.cpp

@@ -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
 				{