Browse Source

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 years ago
parent
commit
81272ba5b5
1 changed files with 1 additions and 1 deletions
  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
 				{