Small optimisations
This commit is contained in:
parent
b6a5ac6ce6
commit
faf24ac61d
|
@ -25,7 +25,7 @@ if(NOT PLATFORM_DREAMCAST)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
||||||
endif()
|
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(
|
set(
|
||||||
SOURCES
|
SOURCES
|
||||||
|
|
|
@ -285,11 +285,7 @@ static void _fillWithNegZVE(const GLubyte* input, GLubyte* out) {
|
||||||
|
|
||||||
static void _fillWhiteARGB(const GLubyte* input, GLubyte* output) {
|
static void _fillWhiteARGB(const GLubyte* input, GLubyte* output) {
|
||||||
_GL_UNUSED(input);
|
_GL_UNUSED(input);
|
||||||
|
*((uint32_t*) output) = ~0;
|
||||||
output[R8IDX] = 255;
|
|
||||||
output[G8IDX] = 255;
|
|
||||||
output[B8IDX] = 255;
|
|
||||||
output[A8IDX] = 255;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _fillZero2f(const GLubyte* input, GLubyte* out) {
|
static void _fillZero2f(const GLubyte* input, GLubyte* out) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user