threading: handle device commands in GetInstanceProcAddr
authorChia-I Wu <olv@google.com>
Mon, 16 May 2016 03:18:31 +0000 (11:18 +0800)
committerTobin Ehlis <tobine@google.com>
Tue, 24 May 2016 12:29:14 +0000 (06:29 -0600)
Call layer_intercept_proc in GetInstanceProcAddr.

layers/threading.cpp

index db5f6ae..c97722e 100644 (file)
@@ -236,6 +236,8 @@ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetInstanceProcAddr(VkInstance instance
     layer_data *my_data;
 
     addr = layer_intercept_instance_proc(funcName);
+    if (!addr)
+        addr = layer_intercept_proc(funcName);
     if (addr) {
         return addr;
     }