"*showFPS: False \n" \
"*wireframe: False \n" \
-# define refresh_stream 0
# define release_stream 0
#undef countof
#define countof(x) (sizeof((x))/sizeof((*x)))
glPixelStorei (GL_UNPACK_ALIGNMENT, 4);
clear_gl_error ();
glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA, TEX_WIDTH, TEX_HEIGHT,
- 0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, texture);
+ 0, GL_RGBA, GL_UNSIGNED_BYTE, texture);
check_gl_error ("texture");
/* Texture parameters, LINEAR scaling for better texture quality */
glEnd ();
}
-static void free_stream (ModeInfo * mi);
-
ENTRYPOINT void
init_stream (ModeInfo *mi)
{
stream_configuration *es;
streamtime current_time;
- MI_INIT (mi, ess, free_stream);
+ MI_INIT (mi, ess);
es = &ess[MI_SCREEN(mi)];
}
}
-static void
+ENTRYPOINT void
free_stream (ModeInfo * mi)
{
stream_configuration *es = &ess[MI_SCREEN(mi)];