#678 removed error message on start

This commit is contained in:
Vadim Grigoruk 2018-08-23 23:12:34 +03:00
parent 50d7b70d31
commit 325a19781e
1 changed files with 4 additions and 6 deletions

View File

@ -1261,10 +1261,7 @@ static void loadCrtShader()
static void updateConfig()
{
if(platform.gpu.screen)
{
initTouchGamepad();
loadCrtShader();
}
}
static System systemInterface =
@ -1314,8 +1311,11 @@ static void gpuTick()
GPU_UpdateImageBytes(platform.gpu.texture, NULL, (const u8*)tic->screen, TIC80_FULLWIDTH * sizeof(u32));
{
if(crtMonitorEnabled())
if(platform.studio->config()->crtMonitor)
{
if(platform.gpu.shader == 0)
loadCrtShader();
SDL_Rect rect = {0, 0, 0, 0};
calcTextureRect(&rect);
@ -1423,8 +1423,6 @@ static s32 start(s32 argc, char **argv, const char* folder)
GPU_SetAnchor(platform.gpu.texture, 0, 0);
GPU_SetImageFilter(platform.gpu.texture, GPU_FILTER_NEAREST);
loadCrtShader();
#if defined(__EMSCRIPTEN__)
emscripten_set_main_loop(emsGpuTick, 0, 1);