GPU/OpenGL: Disable texture buffer upload path if larger buffers are unsupported

This commit is contained in:
Connor McLaughlin 2020-10-10 18:27:18 +10:00
parent 9e2e1050bb
commit 8bb89c9aeb
1 changed files with 4 additions and 1 deletions

View File

@ -196,7 +196,10 @@ void GPU_HW_OpenGL::SetCapabilities(HostDisplay* host_display)
glGetIntegerv(GL_MAX_TEXTURE_BUFFER_SIZE, reinterpret_cast<GLint*>(&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)