cd_warning ("GLX not available !\nFear the worst !");
304
307
}
305
308
306
309
310
void cairo_dock_force_indirect_rendering (void)
311
{
312
if (g_bUseOpenGL)
313
g_openglConfig.bIndirectRendering = TRUE;
314
}
315
307
316
308
317
void cairo_dock_create_icon_fbo (void) // it has been found that you get a speed boost if your textures is the same size and you use 1 FBO for them. => c'est le cas general dans le dock. Du coup on est gagnant a ne faire qu'un seul FBO pour toutes les icones.
309
318
{
315
324
316
325
int iWidth = 0, iHeight = 0;
317
326
int i;
318
for (i = 0; i < CAIRO_DOCK_NB_TYPES; i += 2)
327
for (i = 0; i < CAIRO_DOCK_NB_GROUPS; i += 2)
319
328
{
320
iWidth = MAX (iWidth, myIcons.tIconAuthorizedWidth[i]);
321
iHeight = MAX (iHeight, myIcons.tIconAuthorizedHeight[i]);
329
iWidth = MAX (iWidth, myIconsParam.tIconAuthorizedWidth[i]);
330
iHeight = MAX (iHeight, myIconsParam.tIconAuthorizedHeight[i]);