From faf24ac61dcc3f4ebce38de3c012b4052326026a Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Tue, 20 Apr 2021 09:07:14 +0100 Subject: [PATCH] Small optimisations --- CMakeLists.txt | 2 +- GL/draw.c | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index deb4c5e..b181ed2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ if(NOT PLATFORM_DREAMCAST) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32") endif() -set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 --fast-math") +set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Ofast --fast-math") set( SOURCES diff --git a/GL/draw.c b/GL/draw.c index 41b5469..ee94b10 100644 --- a/GL/draw.c +++ b/GL/draw.c @@ -285,11 +285,7 @@ static void _fillWithNegZVE(const GLubyte* input, GLubyte* out) { static void _fillWhiteARGB(const GLubyte* input, GLubyte* output) { _GL_UNUSED(input); - - output[R8IDX] = 255; - output[G8IDX] = 255; - output[B8IDX] = 255; - output[A8IDX] = 255; + *((uint32_t*) output) = ~0; } static void _fillZero2f(const GLubyte* input, GLubyte* out) {