From 8bb89c9aebd8ca9dfb3cfb9649e998552031a129 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 10 Oct 2020 18:27:18 +1000 Subject: [PATCH] GPU/OpenGL: Disable texture buffer upload path if larger buffers are unsupported --- src/core/gpu_hw_opengl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index 2775e1d60..f91f3c487 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -196,7 +196,10 @@ void GPU_HW_OpenGL::SetCapabilities(HostDisplay* host_display) glGetIntegerv(GL_MAX_TEXTURE_BUFFER_SIZE, reinterpret_cast(&m_max_texture_buffer_size)); Log_InfoPrintf("Max texel buffer size: %u", m_max_texture_buffer_size); if (m_max_texture_buffer_size < VRAM_WIDTH * VRAM_HEIGHT) - Log_WarningPrintf("Maximum texture buffer size is less than VRAM size, VRAM writes may be slower."); + { + Log_WarningPrintf("Maximum texture buffer size is less than VRAM size, not using texel buffers."); + m_supports_texture_buffer = false; + } } if (!m_supports_texture_buffer || m_max_texture_buffer_size < VRAM_WIDTH * VRAM_HEIGHT)