mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user