Skip to content

Commit 56f891b

Browse files
committed
ex6 android fixes
1 parent 264e6f1 commit 56f891b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

examples_tests/06.MeshLoaders/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class MeshLoadersApp : public ApplicationBase
153153
initOutput.system = core::smart_refctd_ptr(system);
154154

155155
const auto swapchainImageUsage = static_cast<asset::IImage::E_USAGE_FLAGS>(asset::IImage::EUF_COLOR_ATTACHMENT_BIT);
156-
const video::ISurface::SFormat surfaceFormat(asset::EF_B8G8R8A8_SRGB, asset::ECP_COUNT, asset::EOTF_UNKNOWN);
156+
const video::ISurface::SFormat surfaceFormat(asset::EF_R8G8B8A8_SRGB, asset::ECP_COUNT, asset::EOTF_UNKNOWN);
157157

158158
CommonAPI::InitWithDefaultExt(initOutput, video::EAT_OPENGL_ES, "MeshLoaders", WIN_W, WIN_H, SC_IMG_COUNT, swapchainImageUsage, surfaceFormat, nbl::asset::EF_D32_SFLOAT);
159159
window = std::move(initOutput.window);

include/nbl/ui/CGraphicalApplicationAndroid.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ namespace nbl::ui
8282
}
8383
}
8484
{
85+
framework->onAppInitialized();
8586
auto wnd = (CWindowAndroid*)framework->getWindow();
8687
auto mouseChannel = core::make_smart_refctd_ptr<IMouseEventChannel>(CWindowAndroid::CIRCULAR_BUFFER_CAPACITY);
8788
auto keyboardChannel = core::make_smart_refctd_ptr<IKeyboardEventChannel>(CWindowAndroid::CIRCULAR_BUFFER_CAPACITY);

src/nbl/video/COpenGLESPhysicalDevice.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ class COpenGLESPhysicalDevice final : public IOpenGL_PhysicalDeviceBase<COpenGLE
311311
// EXT_color_buffer_float here
312312

313313
}
314+
return false;
314315
}
315316

316317
inline bool isAllowedVertexAttribFormat(const asset::E_FORMAT _fmt) const

0 commit comments

Comments
 (0)