Small optimisations

This commit is contained in:
Luke Benstead 2021-04-20 09:07:14 +01:00
parent b6a5ac6ce6
commit faf24ac61d
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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) {