008-07-10 Matthew Allum <mallum@openedhand.com>
* clutter/cogl/gles/cogl-fbo.c: * clutter/cogl/gles/cogl-texture.c: Fix warnings with eglnative build
This commit is contained in:
parent
08cd119902
commit
5972e9db45
@ -180,6 +180,8 @@ cogl_draw_buffer (CoglBufferTarget target, CoglHandle offscreen)
|
||||
/* Draw to all channels */
|
||||
GE( glColorMask (GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE) );
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -482,20 +482,6 @@ _cogl_texture_download_from_gl (CoglTexture *tex,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
_cogl_texture_set_alignment_for_rowstride (gint rowstride)
|
||||
{
|
||||
gint alignment = 1;
|
||||
|
||||
while ((rowstride & 1) == 0 && alignment < 8)
|
||||
{
|
||||
alignment <<= 1;
|
||||
rowstride >>= 1;
|
||||
}
|
||||
|
||||
GE( glPixelStorei (GL_UNPACK_ALIGNMENT, alignment) );
|
||||
}
|
||||
|
||||
static gboolean
|
||||
_cogl_texture_upload_subregion_to_gl (CoglTexture *tex,
|
||||
gint src_x,
|
||||
@ -866,42 +852,6 @@ _cogl_texture_slices_free (CoglTexture *tex)
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
_cogl_pixel_format_from_gl_internal (GLenum gl_int_format,
|
||||
CoglPixelFormat *out_format)
|
||||
{
|
||||
/* It doesn't really matter we convert to exact same
|
||||
format (some have no cogl match anyway) since format
|
||||
is re-matched against cogl when getting or setting
|
||||
texture image data.
|
||||
*/
|
||||
|
||||
switch (gl_int_format)
|
||||
{
|
||||
case GL_ALPHA:
|
||||
|
||||
*out_format = COGL_PIXEL_FORMAT_A_8;
|
||||
return TRUE;
|
||||
|
||||
case GL_LUMINANCE:
|
||||
|
||||
*out_format = COGL_PIXEL_FORMAT_G_8;
|
||||
return TRUE;
|
||||
|
||||
case GL_RGB:
|
||||
|
||||
*out_format = COGL_PIXEL_FORMAT_RGB_888;
|
||||
return TRUE;
|
||||
|
||||
case GL_RGBA:
|
||||
|
||||
*out_format = COGL_PIXEL_FORMAT_RGBA_8888;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static CoglPixelFormat
|
||||
_cogl_pixel_format_to_gl (CoglPixelFormat format,
|
||||
GLenum *out_glintformat,
|
||||
|
Loading…
Reference in New Issue
Block a user