1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-21 00:45:23 +01:00

Take EVDF_RENDER_TO_FLOAT_TEXTURE into account for post-processing

This commit is contained in:
sfan5
2025-11-16 20:23:42 +01:00
parent 7da8a1e8a1
commit 1f0aa28cf0
2 changed files with 24 additions and 7 deletions

View File

@@ -158,7 +158,8 @@ void populatePlainPipeline(RenderPipeline *pipeline, Client *client)
video::ECOLOR_FORMAT selectColorFormat(video::IVideoDriver *driver)
{
u32 bits = g_settings->getU32("post_processing_texture_bits");
if (bits >= 16 && driver->queryTextureFormat(video::ECF_A16B16G16R16F))
if (bits >= 16 && driver->queryTextureFormat(video::ECF_A16B16G16R16F) &&
driver->queryFeature(video::EVDF_RENDER_TO_FLOAT_TEXTURE))
return video::ECF_A16B16G16R16F;
if (bits >= 10 && driver->queryTextureFormat(video::ECF_A2R10G10B10))
return video::ECF_A2R10G10B10;