Lower the priority of the GLSL pipeline backend
Now that the GLSL backend can generate code it can effectively handle any pipeline unless there is an ARBfp program. However with current open source GL drivers the ARBfp compiler is more stable so it makes sense to prefer ARBfp when possible. The GLSL backend is also lower than the fixed function backend on the assumption that any driver that supports GLSL will also support ARBfp so it's quicker to try the fixed function backend next.
This commit is contained in:
parent
4d0b167be4
commit
bbf912b61d
@ -43,12 +43,12 @@ typedef struct _CoglPipelineLayer CoglPipelineLayer;
|
|||||||
#if defined (HAVE_COGL_GL)
|
#if defined (HAVE_COGL_GL)
|
||||||
|
|
||||||
/* NB: pipeline->backend is currently a 3bit unsigned int bitfield */
|
/* NB: pipeline->backend is currently a 3bit unsigned int bitfield */
|
||||||
#define COGL_PIPELINE_BACKEND_GLSL 0
|
#define COGL_PIPELINE_BACKEND_ARBFP 0
|
||||||
#define COGL_PIPELINE_BACKEND_GLSL_MASK (1L<<0)
|
#define COGL_PIPELINE_BACKEND_ARBFP_MASK (1L<<0)
|
||||||
#define COGL_PIPELINE_BACKEND_ARBFP 1
|
#define COGL_PIPELINE_BACKEND_FIXED 1
|
||||||
#define COGL_PIPELINE_BACKEND_ARBFP_MASK (1L<<1)
|
#define COGL_PIPELINE_BACKEND_FIXED_MASK (1L<<1)
|
||||||
#define COGL_PIPELINE_BACKEND_FIXED 2
|
#define COGL_PIPELINE_BACKEND_GLSL 2
|
||||||
#define COGL_PIPELINE_BACKEND_FIXED_MASK (1L<<2)
|
#define COGL_PIPELINE_BACKEND_GLSL_MASK (1L<<2)
|
||||||
|
|
||||||
#define COGL_PIPELINE_N_BACKENDS 3
|
#define COGL_PIPELINE_N_BACKENDS 3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user