Skip to content

Commit

Permalink
Consistency in deprecated checkSupport method
Browse files Browse the repository at this point in the history
Windows and Linux had inconsistent code for checking the physical device presentation support for a given queue family index. They both now go off to the static checkSupport method instead of Windows duplicating checkSupport.
  • Loading branch information
SWinxy committed Nov 1, 2022
1 parent 82d87e7 commit da156a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/lwjgl/vulkan/awt/PlatformWin32VKCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static long create(Canvas canvas, VkInstance instance) throws AWTException {
@Override
@Deprecated
public boolean getPhysicalDevicePresentationSupport(VkPhysicalDevice physicalDevice, int queueFamilyIndex) {
return vkGetPhysicalDeviceWin32PresentationSupportKHR(physicalDevice, queueFamilyIndex);
return checkSupport(physicalDevice, queueFamilyIndex);
}

static boolean checkSupport(VkPhysicalDevice physicalDevice, int queueFamilyIndex) {
Expand Down

0 comments on commit da156a0

Please sign in to comment.