projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7f309a
)
layers: Gitlab 126, Fix for swapchain layer which was checking wrong pointer
author
Norbert Nopper
<norbert@nopper.tv>
Mon, 11 Jan 2016 07:55:57 +0000
(08:55 +0100)
committer
Mark Lobodzinski
<mark@lunarg.com>
Mon, 11 Jan 2016 16:07:13 +0000
(09:07 -0700)
layers/swapchain.cpp
patch
|
blob
|
history
diff --git
a/layers/swapchain.cpp
b/layers/swapchain.cpp
index
b2a8ec7
..
f84f48f
100644
(file)
--- a/
layers/swapchain.cpp
+++ b/
layers/swapchain.cpp
@@
-1149,7
+1149,7
@@
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresent
pPhysicalDevice->presentModeCount = *pPresentModeCount;
pPhysicalDevice->pPresentModes = (VkPresentModeKHR *)
malloc(*pPresentModeCount * sizeof(VkPresentModeKHR));
- if (pPhysicalDevice->p
SurfaceFormat
s) {
+ if (pPhysicalDevice->p
PresentMode
s) {
for (uint32_t i = 0 ; i < *pPresentModeCount ; i++) {
pPhysicalDevice->pPresentModes[i] = pPresentModes[i];
}