mutter/cogl/driver/gles
Neil Roberts 0f43e01cbc cogl-texture-driver-gles: Don't copy the bitmap if alignment matches
When uploading data for GLES we need to deal with cases where the
rowstride is too large to be described only by GL_UNPACK_ALIGNMENT
because there is no GL_UNPACK_ROW_LENGTH. Previously for the
sub-region uploading code it would always copy the bitmap and for the
code to upload the whole image it would copy the bitmap unless the
rowstride == bpp*width. Neither paths took into account that we don't
need to copy if the rowstride is just an alignment of bpp*width. This
moves the bitmap copying code to a separate function that is used by
both upload methods. It only copies the bitmap if the rowstride is not
just an alignment of bpp*width.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2491
2011-01-10 16:55:00 +00:00
..
cogl-context-driver-gles.c Remove the GLES2 wrapper 2010-12-13 17:29:14 +00:00
cogl-context-driver-gles.h Remove the GLES2 wrapper 2010-12-13 17:29:14 +00:00
cogl-feature-functions-gles.h build: Start moving to a non-recursive layout 2010-09-29 14:40:15 +01:00
cogl-gles.c Remove the GLES2 wrapper 2010-12-13 17:29:14 +00:00
cogl-texture-driver-gles.c cogl-texture-driver-gles: Don't copy the bitmap if alignment matches 2011-01-10 16:55:00 +00:00