summaryrefslogtreecommitdiff
path: root/src/demoscene-eo.c
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2019-09-15 14:21:43 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2019-09-15 14:21:43 +0200
commit00ff773ea10dba1fd4c1a2bb09c1ec811a798af3 (patch)
tree9c000214d6b2d2b0cc93f598341aa51c45a7d32f /src/demoscene-eo.c
parentb6ab2f2c62e593edb50508e0b911a01fe773122f (diff)
downloaddemoscene-eo-00ff773ea10dba1fd4c1a2bb09c1ec811a798af3.tar.gz
demoscene-eo-00ff773ea10dba1fd4c1a2bb09c1ec811a798af3.tar.bz2
demoscene-eo-00ff773ea10dba1fd4c1a2bb09c1ec811a798af3.zip
WIP: utils.c for factoring opengl tedious tasks, switch to OpenGL 3.3HEADmaster
For now, it display nothing, shaders changed without updating client code.
Diffstat (limited to 'src/demoscene-eo.c')
-rw-r--r--src/demoscene-eo.c6
1 files changed, 3 insertions, 3 deletions
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)