Doc: Remove references to non-existing current() method

There seems to be no current() method. Replace with the vkInstance
method.

Fixes: QTBUG-115853
Pick-to: 6.6 6.5 6.4 6.2
Change-Id: Ifc0f741186092862b498fe4be2d39076b92fa725
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Andreas Eliasson 2023-08-15 11:13:26 +02:00
parent 6616d4e1f3
commit 50bce44027

View File

@ -245,7 +245,8 @@ QVulkanInstance::QVulkanInstance()
/*!
Destructor.
\note current() will return \nullptr once the instance is destroyed.
\note \l {QVulkanInstance::}{vkInstance()} will return \nullptr once the
instance is destroyed.
*/
QVulkanInstance::~QVulkanInstance()
{
@ -540,8 +541,8 @@ void QVulkanInstance::setApiVersion(const QVersionNumber &vulkanVersion)
\return true if successful, false on error or when Vulkan is not supported.
When successful, the pointer to this QVulkanInstance is retrievable via the
static function current().
When successful, the pointer to this QVulkanInstance is retrievable via
\l {QVulkanInstance::}{vkInstance()}.
The Vulkan instance and library is available as long as this
QVulkanInstance exists, or until destroy() is called.