Fix build with Vulkan disabled and no Vulkan headers installed.

This commit is contained in:
bruvzg 2022-10-25 22:20:54 +03:00
parent 2b505b74b9
commit 4dd8f68120
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
14 changed files with 56 additions and 10 deletions

View file

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#ifdef VULKAN_ENABLED
#include "vulkan_context_android.h"
#ifdef USE_VOLK
@ -63,3 +65,5 @@ bool VulkanContextAndroid::_use_validation_layers() {
// On Android, we use validation layers automatically if they were explicitly linked with the app.
return count > 0;
}
#endif // VULKAN_ENABLED