mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 06:41:58 +00:00
Merge pull request #67 from lvonasek/feature_lightmaps_fix
Lightmap issue fixed (optimized)
This commit is contained in:
commit
39f669dd51
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -353,6 +353,9 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu")
|
|||
-pipe -DUSE_ICON -DARCH_STRING=\\\"$(ARCH)\\\"
|
||||
CLIENT_CFLAGS += $(SDL_CFLAGS)
|
||||
|
||||
# Flag -ffast-math replacement: https://pspdfkit.com/blog/2021/understanding-fast-math/
|
||||
# Flags -ffp-contract=fast -fno-trapping-math are unused because they are causing lightmap issues
|
||||
OPTIMIZEFASTMATH = -ffinite-math-only -fno-math-errno -fassociative-math -freciprocal-math -fno-signed-zeros
|
||||
OPTIMIZEVM = -O3
|
||||
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||
|
||||
|
@ -1263,6 +1266,11 @@ $(echo_cmd) "REF_CC $<"
|
|||
$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $<
|
||||
endef
|
||||
|
||||
define DO_REF_CC_PRECISE
|
||||
$(echo_cmd) "REF_CC $<"
|
||||
$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZEVM) $(OPTIMIZEFASTMATH) -o $@ -c $<
|
||||
endef
|
||||
|
||||
define DO_REF_CC_ALTIVEC
|
||||
$(echo_cmd) "REF_CC $<"
|
||||
$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) $(ALTIVEC_CFLAGS) -o $@ -c $<
|
||||
|
@ -2720,7 +2728,7 @@ $(B)/renderergles3/%.o: $(RCOMMONDIR)/%.c
|
|||
$(DO_REF_CC)
|
||||
|
||||
$(B)/renderergles3/%.o: $(RGL2DIR)/%.c
|
||||
$(DO_REF_CC)
|
||||
$(DO_REF_CC_PRECISE)
|
||||
|
||||
$(B)/renderergles3/glsl/%.c: $(RGL2DIR)/glsl/%.glsl
|
||||
$(DO_REF_STR)
|
||||
|
|
Loading…
Reference in a new issue