Skip to content

Commit 563e2bd

Browse files
committed
fixup! JBR-8608 Vulkan: Cleanup capability checks
1 parent a97e26e commit 563e2bd

File tree

1 file changed

+1
-1
lines changed
  • src/java.desktop/share/native/common/java2d/vulkan

1 file changed

+1
-1
lines changed

src/java.desktop/share/native/common/java2d/vulkan/VKDevice.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Java_sun_java2d_vulkan_VKGPU_init(JNIEnv *env, jclass jClass, jlong jDevice) {
320320
.pQueuePriorities = &queuePriority
321321
};
322322

323-
VkPhysicalDeviceFeatures features10 = { .logicOp = VK_TRUE };
323+
VkPhysicalDeviceFeatures features10 = { .logicOp = device->caps & sun_java2d_vulkan_VKGPU_CAP_LOGIC_OP_BIT };
324324
VkPhysicalDeviceVulkan12Features features12 = {
325325
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES,
326326
.timelineSemaphore = VK_TRUE

0 commit comments

Comments
 (0)