fix clown vomit by fixing opengl version
This commit is contained in:
parent
00b71cd0ae
commit
fe421727d0
@ -35,7 +35,7 @@ file(GLOB src
|
||||
|
||||
add_executable(${PROJECT_NAME} ${src})
|
||||
|
||||
set (CMAKE_C_FLAGS "-O2 -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter -Wno-discarded-qualifiers")
|
||||
set (CMAKE_C_FLAGS "-O2 -Wall -Wextra -pedantic -Wno-unused-variable -Wno-unused-parameter -Wno-discarded-qualifiers -Wno-parantheses")
|
||||
|
||||
if (EMSCRIPTEN)
|
||||
set(CMAKE_EXECUTABLE_SUFFIX ".html")
|
||||
|
@ -39,12 +39,12 @@ unsigned long jsw_rand ( void )
|
||||
next = 0;
|
||||
|
||||
for ( i = 0; i < N - 1; i++ ) {
|
||||
y = ( x[i] & U ) | x[i + 1] & L;
|
||||
y = ( x[i] & U ) | (x[i + 1] & L);
|
||||
a = ( y & 0x1UL ) ? A : 0x0UL;
|
||||
x[i] = x[( i + M ) % N] ^ ( y >> 1 ) ^ a;
|
||||
}
|
||||
|
||||
y = ( x[N - 1] & U ) | x[0] & L;
|
||||
y = ( x[N - 1] & U ) | (x[0] & L);
|
||||
a = ( y & 0x1UL ) ? A : 0x0UL;
|
||||
x[N - 1] = x[M - 1] ^ ( y >> 1 ) ^ a;
|
||||
}
|
||||
|
@ -44,9 +44,15 @@ sdl_init(void)
|
||||
else
|
||||
printf(STRING_SDL_MIXER_INIT);
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
|
||||
|
||||
/*
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
|
||||
|
||||
*/
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
|
||||
|
Loading…
Reference in New Issue
Block a user