From 325a19781ebbbfcd429280e5b7b19a79d7a6515b Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Thu, 23 Aug 2018 23:12:34 +0300 Subject: [PATCH] #678 removed error message on start --- src/system.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/system.c b/src/system.c index d0ff82e..5c8d009 100644 --- a/src/system.c +++ b/src/system.c @@ -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);