diff options
Diffstat (limited to 'cogl/driver/gles/cogl-texture-driver.c')
-rw-r--r-- | cogl/driver/gles/cogl-texture-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/driver/gles/cogl-texture-driver.c b/cogl/driver/gles/cogl-texture-driver.c index 41cc9a82..0fc6744c 100644 --- a/cogl/driver/gles/cogl-texture-driver.c +++ b/cogl/driver/gles/cogl-texture-driver.c @@ -52,7 +52,7 @@ _cogl_texture_driver_gen (GLenum gl_target, GLsizei n, GLuint *textures) { - guint i; + unsigned int i; GE (glGenTextures (n, textures)); @@ -125,7 +125,7 @@ _cogl_texture_driver_upload_subregion_to_gl (GLenum gl_target, slice_bmp.width = width; slice_bmp.height = height; slice_bmp.rowstride = bpp * slice_bmp.width; - slice_bmp.data = (guchar*) g_malloc (slice_bmp.rowstride * slice_bmp.height); + slice_bmp.data = g_malloc (slice_bmp.rowstride * slice_bmp.height); /* Setup gl alignment to match rowstride and top-left corner */ _cogl_texture_driver_prep_gl_for_pixels_upload (slice_bmp.rowstride, |