Remove assert that aliased functions will return same pointer

* The validation layers break this, although that's a very worrying
  trend if KHR and core-promoted functions are allowed to be different
  and potentially have different implementations.
This commit is contained in:
baldurk
2018-05-12 12:58:25 +01:00
parent dc8d4f63d5
commit cf508427da
+9 -12
View File
@@ -133,18 +133,15 @@ void InitDeviceExtensionTables(VkDevice device, InstanceDeviceInfo *info)
}
#undef HookInitPromotedExtension
#define HookInitPromotedExtension(cond, func, suffix) \
if(cond) \
{ \
DeviceGPA(func); \
DeviceGPA(CONCAT(func, suffix)); \
RDCASSERT(table->func == table->CONCAT(func, suffix) || table->func == NULL || \
table->CONCAT(func, suffix) == NULL, \
(void *)table->func, (void *)table->CONCAT(func, suffix)); \
if(table->func == NULL) \
table->func = table->CONCAT(func, suffix); \
if(table->CONCAT(func, suffix) == NULL) \
table->CONCAT(func, suffix) = table->func; \
#define HookInitPromotedExtension(cond, func, suffix) \
if(cond) \
{ \
DeviceGPA(func); \
DeviceGPA(CONCAT(func, suffix)); \
if(table->func == NULL) \
table->func = table->CONCAT(func, suffix); \
if(table->CONCAT(func, suffix) == NULL) \
table->CONCAT(func, suffix) = table->func; \
}
CheckInstanceExts();