* tests/conform/test-backface-culling.c (TEXTURE_SIZE): Don't set

to a funny size on GLES because it will break cogl_texture_polygon
This commit is contained in:
Neil Roberts 2008-11-28 17:45:54 +00:00
parent 72f2fc22ad
commit f052335bb4
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-11-28 Neil Roberts <neil@linux.intel.com>
* tests/conform/test-backface-culling.c (TEXTURE_SIZE): Don't set
to a funny size on GLES because it will break cogl_texture_polygon
2008-11-28 Neil Roberts <neil@linux.intel.com>
* tests/conform/test-backface-culling.c: New test for backface

View File

@ -7,10 +7,21 @@
static const ClutterColor stage_color = { 0x0, 0x0, 0x0, 0xff };
#ifdef CLUTTER_COGL_HAS_GL
/* Size the texture so that it is just off a power of two to enourage
it so use software tiling when NPOTs aren't available */
#define TEXTURE_SIZE 33
#else /* CLUTTER_COGL_HAS_GL */
/* We can't use the funny-sized texture on GL ES because it will break
cogl_texture_polygon. However there is only one code path for
rendering quads so there is no need */
#define TEXTURE_SIZE 32
#endif /* CLUTTER_COGL_HAS_GL */
/* Amount of pixels to skip off the top, bottom, left and right of the
texture when reading back the stage */
#define TEST_INSET 4