#678 removed error message on start
This commit is contained in:
parent
50d7b70d31
commit
325a19781e
10
src/system.c
10
src/system.c
|
@ -1261,10 +1261,7 @@ static void loadCrtShader()
|
||||||
static void updateConfig()
|
static void updateConfig()
|
||||||
{
|
{
|
||||||
if(platform.gpu.screen)
|
if(platform.gpu.screen)
|
||||||
{
|
|
||||||
initTouchGamepad();
|
initTouchGamepad();
|
||||||
loadCrtShader();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static System systemInterface =
|
static System systemInterface =
|
||||||
|
@ -1314,8 +1311,11 @@ static void gpuTick()
|
||||||
GPU_UpdateImageBytes(platform.gpu.texture, NULL, (const u8*)tic->screen, TIC80_FULLWIDTH * sizeof(u32));
|
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};
|
SDL_Rect rect = {0, 0, 0, 0};
|
||||||
calcTextureRect(&rect);
|
calcTextureRect(&rect);
|
||||||
|
|
||||||
|
@ -1423,8 +1423,6 @@ static s32 start(s32 argc, char **argv, const char* folder)
|
||||||
GPU_SetAnchor(platform.gpu.texture, 0, 0);
|
GPU_SetAnchor(platform.gpu.texture, 0, 0);
|
||||||
GPU_SetImageFilter(platform.gpu.texture, GPU_FILTER_NEAREST);
|
GPU_SetImageFilter(platform.gpu.texture, GPU_FILTER_NEAREST);
|
||||||
|
|
||||||
loadCrtShader();
|
|
||||||
|
|
||||||
#if defined(__EMSCRIPTEN__)
|
#if defined(__EMSCRIPTEN__)
|
||||||
|
|
||||||
emscripten_set_main_loop(emsGpuTick, 0, 1);
|
emscripten_set_main_loop(emsGpuTick, 0, 1);
|
||||||
|
|
Loading…
Reference in New Issue