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

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

Fixes: QTBUG-115853
Change-Id: Ifc0f741186092862b498fe4be2d39076b92fa725
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
(cherry picked from commit 50bce440277d4383dcf3a055cb9b5d513735bcbc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Andreas Eliasson 2023-08-15 11:13:26 +02:00 committed by Qt Cherry-pick Bot
parent 7279e97dc3
commit 2332b6ccde

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.