mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user