Fix passing temporary object as reference
Fix passing temporary object as reference

Components:
Vulkan, OpenGL, EGL, Framework

VK-GL-CTS issue: 3382

Affects:
dEQP-VK*
dEQP-GL*
dEQP-EGL*

Change-Id: Ibff4e4a7bc8c9da3ea82337a84da6c4118608b11

KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS