mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Clarify pointer assertions
This commit is contained in:
+2
-2
@@ -262,9 +262,9 @@ GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance,
|
||||
VkSurfaceKHR* surface)
|
||||
{
|
||||
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||
assert(window);
|
||||
assert(window != NULL);
|
||||
|
||||
assert(surface);
|
||||
assert(surface != NULL);
|
||||
*surface = VK_NULL_HANDLE;
|
||||
|
||||
_GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED);
|
||||
|
||||
Reference in New Issue
Block a user