File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
attachments/simple_engine Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 99// Constants
1010constexpr int WINDOW_WIDTH = 800 ;
1111constexpr int WINDOW_HEIGHT = 600 ;
12+ #if defined(NDEBUG)
13+ constexpr bool ENABLE_VALIDATION_LAYERS = false ;
14+ #else
1215constexpr bool ENABLE_VALIDATION_LAYERS = true ;
16+ #endif
1317
1418
1519/* *
You can’t perform that action at this time.
0 commit comments