Turn off Vulkan in CMake-based and Qt-based builds, for now

This commit is contained in:
Henrik Rydgard 2016-02-21 22:12:19 +01:00
parent d325aa2b30
commit 96273c6616
4 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/CMakeTests)
add_definitions(-DPPSSPP)
# None of these platforms support Vulkan yet.
add_definitions(-DNO_VULKAN)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(_ARCH_64 1)
add_definitions(-D_ARCH_64=1)

View File

@ -21,7 +21,9 @@
#include "GPU/GPU.h"
#include "GPU/GPUInterface.h"
#include "GPU/GLES/GLES_GPU.h"
#ifndef NO_VULKAN
#include "GPU/Vulkan/GPU_Vulkan.h"
#endif
#include "GPU/Null/NullGpu.h"
#include "GPU/Software/SoftGpu.h"
@ -61,9 +63,11 @@ bool GPU_Init(GraphicsContext *ctx) {
break;
case GPU_DIRECTX11:
return nullptr;
#ifndef NO_VULKAN
case GPU_VULKAN:
SetGPU(new GPU_Vulkan(ctx));
break;
#endif
}
return gpu != NULL;

View File

@ -72,4 +72,5 @@ HEADERS += $$P/Common/ChunkFile.h \
$$P/Common/Crypto/*.h
INCLUDEPATH += $$P/ext/native
INCLUDEPATH += $$P/ext

View File

@ -1,5 +1,5 @@
VERSION = 1.2.2.0
DEFINES += USING_QT_UI USE_FFMPEG
DEFINES += USING_QT_UI USE_FFMPEG NO_VULKAN
exists( /usr/include/snappy-c.h ) {
DEFINES += SHARED_SNAPPY