Skip to content

Commit b4d6226

Browse files
committed
addressing more comments.
1 parent 5c4ec27 commit b4d6226

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

attachments/simple_engine/engine.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ class Engine {
169169
* @param enableValidationLayers Whether to enable Vulkan validation layers.
170170
* @return True if initialization was successful, false otherwise.
171171
*/
172+
#if defined(NDEBUG)
173+
bool InitializeAndroid(android_app* app, const std::string& appName, bool enableValidationLayers = false);
174+
#else
172175
bool InitializeAndroid(android_app* app, const std::string& appName, bool enableValidationLayers = true);
176+
#endif
173177

174178
/**
175179
* @brief Run the engine on Android.

attachments/simple_engine/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
// Constants
1010
constexpr int WINDOW_WIDTH = 800;
1111
constexpr int WINDOW_HEIGHT = 600;
12+
#if defined(NDEBUG)
13+
constexpr bool ENABLE_VALIDATION_LAYERS = false;
14+
#else
1215
constexpr bool ENABLE_VALIDATION_LAYERS = true;
16+
#endif
1317

1418

1519
/**

0 commit comments

Comments
 (0)