diff options
| -rw-r--r-- | demos/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | demos/cube.c | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index 06279099..4e19030a 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -53,6 +53,8 @@ if(WIN32) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXCB_NVIDIA -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXCB_NVIDIA -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES") set (LIBRARIES ${LIBRARIES} xcb_nvidia) +else() + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DEXTERNAL_SPV") endif() add_executable(xglinfo xglinfo.c) diff --git a/demos/cube.c b/demos/cube.c index bd272e68..fcec0e04 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -19,14 +19,6 @@ #define DEMO_TEXTURE_COUNT 1 /* - * When not defined, code will use built-in GLSL compiler - * which may not be supported on all drivers - */ -#if !defined(XCB_NVIDIA) -#define EXTERNAL_SPV -#endif - -/* * structure to track all objects related to a texture. */ struct texture_objects { |
