add #define protection (still incomplete)

This commit is contained in:
milang 2019-09-01 14:58:27 +02:00
parent 70959b6b2f
commit 3bcc97a6e2
No known key found for this signature in database
GPG Key ID: D287C9D6C33D9035
1 changed files with 4 additions and 4 deletions

View File

@ -8,13 +8,13 @@
#include <gint/display.h>
#include <gint/clock.h>
static uint32_t frame_interval_min;
static uint32_t frame_interval_max;
void render_update(const uint32_t libprof_channel)
{
//dupdate();
#ifdef USE_LIBPROF
static uint32_t frame_interval_min=1000000;
static uint32_t frame_interval_max=1;
// gestion du temps avec libprof
if (prof_elapsed)
{
@ -33,7 +33,7 @@ void render_update(const uint32_t libprof_channel)
//dupdate();
prof_clear(libprof_channel);
prof_enter(libprof_channel);
#endif
render_zbuffer_clear();
///render_set(dh, dv, roulis, camera);