Disabling OpenVR plugin

This commit is contained in:
Bradley Austin Davis 2015-12-08 17:55:46 -08:00
parent 978d39b7f4
commit fd5fb3096f
2 changed files with 6 additions and 4 deletions

View file

@ -105,7 +105,7 @@ public:
// take the latest texture and present it
_context->makeCurrent();
if (QOpenGLContext::currentContext() == _context->contextHandle()) {
_activePlugin->present();
currentPlugin->present();
_context->doneCurrent();
} else {
qWarning() << "Makecurrent failed";

View file

@ -6,7 +6,10 @@
# See the accompanying file LICENSE or http:#www.apache.org/licenses/LICENSE-2.0.html
#
if (WIN32)
# OpenVR is disabled until a) it works with threaded present and
# b) it doesn't interfere with Oculus SDK 0.8
if (FALSE)
#if (WIN32)
# we're using static GLEW, so define GLEW_STATIC
add_definitions(-DGLEW_STATIC)
set(TARGET_NAME openvr)
@ -21,5 +24,4 @@ if (WIN32)
find_package(OpenVR REQUIRED)
target_include_directories(${TARGET_NAME} PRIVATE ${OPENVR_INCLUDE_DIRS})
target_link_libraries(${TARGET_NAME} ${OPENVR_LIBRARIES})
endif()
endif()