Skip to content

Commit 2311e9c

Browse files
committed
[EX_16] Change surfaceFormat to work with Android
1 parent 264e6f1 commit 2311e9c

File tree

1 file changed

+2
-1
lines changed
  • examples_tests/16.OrderIndependentTransparency

1 file changed

+2
-1
lines changed

examples_tests/16.OrderIndependentTransparency/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using namespace nbl;
1616
using namespace core;
17+
using namespace ui;
1718
/*
1819
Uncomment for more detailed logging
1920
*/
@@ -173,7 +174,7 @@ class OITSampleApp : public ApplicationBase
173174
CommonAPI::SFeatureRequest< video::ILogicalDevice::E_FEATURE> optionalDeviceFeatures = {};
174175

175176
const auto swapchainImageUsage = static_cast<asset::IImage::E_USAGE_FLAGS>(asset::IImage::EUF_COLOR_ATTACHMENT_BIT);
176-
const video::ISurface::SFormat surfaceFormat(asset::EF_B8G8R8A8_SRGB, asset::ECP_COUNT, asset::EOTF_UNKNOWN);
177+
const video::ISurface::SFormat surfaceFormat(asset::EF_R8G8B8A8_SRGB, asset::ECP_COUNT, asset::EOTF_UNKNOWN);
177178

178179
CommonAPI::InitOutput initOutput;
179180
initOutput.window = core::smart_refctd_ptr(window);

0 commit comments

Comments
 (0)