aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorIan Elliott <ianelliott@google.com>2016-03-24 13:59:22 -0600
committerJon Ashburn <jon@lunarg.com>2016-03-24 16:16:01 -0600
commit8c59d0af94721711da5013971f80899053fac074 (patch)
treee27e132d6d1879435283a7fc70f33e64f37849af /layers/core_validation.cpp
parentf010bec856e17cfb59851235cb951b291ec73f2e (diff)
downloadusermoji-8c59d0af94721711da5013971f80899053fac074.tar.xz
layers: WSI functions should not work unless enabled.
The WSI extension functions are special. They are statically exported from the loader. This means that an application can directly link against them, and not have to call a vkGet*ProcAddr function. However, the application is still reponsible for for enabling the appropriate WSI extension. An application was observed that called the WSI functions without enabling the appropriate extensions. It worked. When that application was run with the validation layers, it crashed. A change was made to the layer to make sure that an error was always logged. It was decided that the loader should change so that the terminator functions not work (and print a brief message) if an application calls the function without enabling its extension. This is done in the terminator so that the validation layer can be called, which should log a good error message; and yet still done here in case the application is never tried with validation turned on.
Diffstat (limited to 'layers/core_validation.cpp')
0 files changed, 0 insertions, 0 deletions