GPUDevice: Support R16I/R16U textures
This commit is contained in:
@ -470,7 +470,7 @@ bool OpenGLDevice::CheckFeatures(bool* buggy_pbo, FeatureMask disabled_features)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!m_features.supports_texture_buffers)
|
||||
if (!m_features.supports_texture_buffers && !(disabled_features & FEATURE_MASK_TEXTURE_BUFFERS))
|
||||
{
|
||||
// Try SSBOs.
|
||||
GLint max_fragment_storage_blocks = 0;
|
||||
@ -487,7 +487,7 @@ bool OpenGLDevice::CheckFeatures(bool* buggy_pbo, FeatureMask disabled_features)
|
||||
(max_fragment_storage_blocks > 0 && max_ssbo_size >= static_cast<GLint64>(1024 * 512 * sizeof(u16)));
|
||||
if (m_features.texture_buffers_emulated_with_ssbo)
|
||||
{
|
||||
Log_InfoPrintf("Using shader storage buffers for VRAM writes.");
|
||||
Log_InfoPrint("Using shader storage buffers for VRAM writes.");
|
||||
m_features.supports_texture_buffers = true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user