mirror of
https://github.com/brl/mutter.git
synced 2025-08-02 22:54:44 +00:00
Fix the Cogl primitives for the GLES backend
The Cogl primitives broke for GLES 1.1 and 2 after the cogl-float branch merge. CoglPathNode was still being declared as GLfixed for the GLES backend but it was being filled with float values so they were all ending up as numbers < 1. glDrawArrays was being called with GL_FIXED so this has been changed to GL_FLOAT. The scanline rasterizer had a leftover hardcoded ClutterFixed constant to add a small amount to the height of each line. struct _CoglFloatVec2 has been removed because it is no longer used anywhere.
This commit is contained in:
@@ -37,16 +37,6 @@ struct _floatVec2
|
||||
float y;
|
||||
};
|
||||
|
||||
#ifdef CLUTTER_COGL_HAS_GL
|
||||
|
||||
typedef struct _CoglFloatVec2 CoglFloatVec2;
|
||||
|
||||
struct _CoglFloatVec2
|
||||
{
|
||||
GLfloat x;
|
||||
GLfloat y;
|
||||
};
|
||||
|
||||
struct _CoglPathNode
|
||||
{
|
||||
GLfloat x;
|
||||
@@ -54,17 +44,6 @@ struct _CoglPathNode
|
||||
guint path_size;
|
||||
};
|
||||
|
||||
#else /* CLUTTER_COGL_HAS_GL */
|
||||
|
||||
struct _CoglPathNode
|
||||
{
|
||||
GLfixed x;
|
||||
GLfixed y;
|
||||
guint path_size;
|
||||
};
|
||||
|
||||
#endif /* CLUTTER_COGL_HAS_GL */
|
||||
|
||||
struct _CoglBezQuad
|
||||
{
|
||||
floatVec2 p1;
|
||||
|
Reference in New Issue
Block a user