dfxvideo: turn off strict-aliasing (causes problems)
authornotaz <notasas@gmail.com>
Tue, 1 Mar 2011 23:19:29 +0000 (01:19 +0200)
committernotaz <notasas@gmail.com>
Tue, 1 Mar 2011 23:21:59 +0000 (01:21 +0200)
all that int16/int32 casting is messing it up I guess.

Makefile

index f36a031..900a5d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -66,7 +66,8 @@ LDFLAGS += -lasound
 endif
 
 # gpu
-plugins/dfxvideo/%.o: CFLAGS += -Wall
+# note: code is not safe for strict-aliasing? (Castlevania problems)
+plugins/dfxvideo/%.o: CFLAGS += -Wall -fno-strict-aliasing
 OBJS += plugins/dfxvideo/gpu.o
 plugins/dfxvideo/gpu.o: plugins/dfxvideo/fps.c plugins/dfxvideo/prim.c \
        plugins/dfxvideo/gpu.c plugins/dfxvideo/soft.c