Removed autoset fps.

This commit is contained in:
jussi
2022-06-21 12:36:22 +03:00
parent 6bac1a2c63
commit 36baf4c122
4 changed files with 9 additions and 12 deletions

View File

@@ -15,7 +15,6 @@ bool stateInit( const char *exePath ) {
state->run = true;
state->resolution = (Vector2){ 1024, 720 };
state->luaState = NULL;
state->targetFPS = 60;
state->textureSource = TEXTURE_SOURCE_TEXTURE;
/* Images. */
state->imageAlloc = ALLOC_PAGE_SIZE;
@@ -106,13 +105,11 @@ bool stateInit( const char *exePath ) {
state->hasWindow = false;
state->run = false;
}
else {
SetTargetFPS( state->targetFPS );
if ( state->run ) {
InitAudioDevice();
state->run = luaInit();
}
InitAudioDevice();
state->run = luaInit();
return state->run;
}