From 00ff773ea10dba1fd4c1a2bb09c1ec811a798af3 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 15 Sep 2019 14:21:43 +0200 Subject: WIP: utils.c for factoring opengl tedious tasks, switch to OpenGL 3.3 For now, it display nothing, shaders changed without updating client code. --- src/demoscene-eo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/demoscene-eo.c') diff --git a/src/demoscene-eo.c b/src/demoscene-eo.c index ed6fe1b..1c532be 100644 --- a/src/demoscene-eo.c +++ b/src/demoscene-eo.c @@ -159,7 +159,7 @@ int parent() { case 2: res = scene02_init_caca(&shm->ge, &shm->s02e); break; } // If scene init fail, skip to the next one - if (res) SCENE_NEXT; else lastscene = shm->scene; + if (res) { printf("scene%02i_init_caca() returned %i\n", shm->scene, res); SCENE_NEXT; } else lastscene = shm->scene; } shm->ge.sdl_ticks = SDL_GetTicks(); // This value wraps if the program runs for more than ~49 days @@ -288,7 +288,7 @@ int worker_sdl() { case 2: res = scene02_init_sdl(&shm->ge, &shm->s02e); break; } // If scene init fail, skip to the next one - if (res) SCENE_NEXT; else lastscene = shm->scene; + if (res) { printf("scene%02i_init_sdl() returned %i\n", shm->scene, res); SCENE_NEXT; } else lastscene = shm->scene; } // Compute current scene frame (sdl part) switch(shm->scene) { @@ -413,7 +413,7 @@ int worker_gl() { case 2: res = scene02_init_gl(&shm->ge, &shm->s02e); break; } // If scene init fail, skip to the next one - if (res) SCENE_NEXT; else lastscene = shm->scene; + if (res) { printf("scene%02i_init_gl() returned %i\n", shm->scene, res); SCENE_NEXT; } else lastscene = shm->scene; } // Compute current scene frame (gl part) -- cgit v1.2.3