mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
select closest power of 2 resolution for the cubemap
This commit is contained in:
parent
56c74fb96f
commit
bccff768ff
@ -683,6 +683,9 @@ namespace MWRender
|
||||
else if (screenshotMapping == 2)
|
||||
screenshotH = screenshotW; // use square resolution for planet mapping
|
||||
|
||||
if (!rawCubemap)
|
||||
cubeSize = pow(2,round(log2(cubeSize))); // select closest power of 2 for GPU
|
||||
|
||||
std::vector<osg::ref_ptr<osg::Image>> images;
|
||||
|
||||
for (int i = 0; i < 6; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user