From de6511abe0157aab44c98c5b47a3cf2156bb8a98 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 18 May 2024 23:40:28 +0200 Subject: [PATCH] dont compile with that with NOHW --- src/CMakeLists.txt | 8 +++++--- src/Makefile | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 74833b216..b4bb035af 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -512,9 +512,11 @@ if(${SRB2_CONFIG_HWRENDER} AND ${SRB2_CONFIG_STATIC_OPENGL}) endif() endif() -if(${SRB2_CONFIG_USE_FBO_OGL}) - set(SRB2_USE_FBO_OGL ON) - add_definitions(-DUSE_FBO_OGL) +if(${SRB2_CONFIG_HWRENDER}) + if(${SRB2_CONFIG_USE_FBO_OGL}) + set(SRB2_USE_FBO_OGL ON) + add_definitions(-DUSE_FBO_OGL) + endif() endif() # Targets diff --git a/src/Makefile b/src/Makefile index 72a083b88..af8dd67b0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -376,9 +376,11 @@ ifdef STATIC LIBS:=-static $(LIBS) endif +ifndef NOHW ifdef USE_FBO_OGL OPTS+=-DUSE_FBO_OGL endif +endif ifdef HAVE_MINIUPNPC ifdef NONET