Skip to content

Commit

Permalink
Remove traces of failed VK experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Aug 21, 2023
1 parent ccc1fe7 commit 1238ab0
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 295 deletions.
7 changes: 0 additions & 7 deletions docker-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,6 @@ ENV CCACHE_DIR=/ccache
ENV CCACHE_CONFIGPATH=/etc/ccache.conf
ENV PATH="/usr/lib/ccache:${PATH}"

# Install Vulkan SDK
RUN apt install wget; \
wget -q https://sdk.lunarg.com/sdk/download/latest/linux/vulkan-sdk.tar.gz; \
mkdir /vulkan-sdk && tar -xf vulkan-sdk.tar.gz --strip-components=1 -C /vulkan-sdk; \
rm -rf vulkan-sdk.tar.gz


COPY scripts /scripts
ENV PATH="/scripts:${PATH}"

Expand Down
2 changes: 0 additions & 2 deletions docker-build/scripts/02_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ if [ "${PLATFORM}" == "linux-64" ]; then
elif [ "${PLATFORM}" == "windows-64" ]; then
EXTRA_CMAKE_ARGS+=(
-DMINGWLIBS=${LIBS_DIR}
-DVulkan_INCLUDE_DIR=/vulkan-sdk/x86_64/include
-DVulkan_LIBRARY=/vulkan-sdk/x86_64/lib
)
fi

Expand Down
1 change: 0 additions & 1 deletion docker-build/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
source /vulkan-sdk/setup-env.sh
COMMAND=$1
shift

Expand Down
2 changes: 0 additions & 2 deletions rts/Rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ set(sources_engine_Rendering
"${CMAKE_CURRENT_SOURCE_DIR}/GL/glExtra.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/GL/State.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/GL/myGL.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/VK/VkInit.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/VK/VkInfo.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/GlobalRendering.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/GroundFlash.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/CommandDrawer.cpp"
Expand Down
3 changes: 0 additions & 3 deletions rts/Rendering/GlobalRendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "Rendering/GL/RenderBuffers.h"
#include "Rendering/GL/myGL.h"
#include "Rendering/GL/FBO.h"
#include "Rendering/VK/VkInfo.h"
#include "Rendering/UniformConstants.h"
#include "Rendering/Fonts/glFont.h"
#include "System/bitops.h"
Expand Down Expand Up @@ -612,8 +611,6 @@ void CGlobalRendering::PostInit() {
glewExperimental = true;
#endif

//VkInfo::PrintInfo();

glewInit();
// glewInit sets GL_INVALID_ENUM, get rid of it
glGetError();
Expand Down
115 changes: 0 additions & 115 deletions rts/Rendering/VK/VkInfo.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions rts/Rendering/VK/VkInfo.h

This file was deleted.

99 changes: 0 additions & 99 deletions rts/Rendering/VK/VkInit.cpp

This file was deleted.

52 changes: 0 additions & 52 deletions rts/Rendering/VK/VkInit.h

This file was deleted.

6 changes: 0 additions & 6 deletions rts/builds/legacy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ if("${SDL2_VERSION_STRING}" VERSION_LESS "2")
message(FATAL_ERROR "Found SDL v${SDL2_VERSION_STRING} while 2 is required!")
endif()

find_package(Vulkan)
if (Vulkan_FOUND)
list(APPEND engineIncludes ${Vulkan_INCLUDE_DIRS})
add_definitions(-DHAS_VULKAN)
endif (Vulkan_FOUND)

set(OpenGL_GL_PREFERENCE LEGACY)
find_package_static(OpenGL REQUIRED)
find_package_static(GLEW 1.5.1 REQUIRED)
Expand Down

0 comments on commit 1238ab0

Please sign in to comment.