mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 12:05:20 +00:00
Fixed code responsible for checking minimal required device parameters (limits).
This commit is contained in:
@@ -335,7 +335,7 @@ namespace ApiWithoutSecrets {
|
||||
|
||||
uint32_t major_version = VK_VERSION_MAJOR( device_properties.apiVersion );
|
||||
|
||||
if( (major_version < 1) &&
|
||||
if( (major_version < 1) ||
|
||||
(device_properties.limits.maxImageDimension2D < 4096) ) {
|
||||
std::cout << "Physical device " << physical_device << " doesn't support required parameters!" << std::endl;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user