GLint tex_internalformat;
GLenum tex_format;
GLenum tex_type;
- GLint tex_bpp;
/*
* @}
uint32_t height,
GLint tex_internalformat,
GLenum tex_format,
- GLenum tex_type,
- GLint tex_bpp)
+ GLenum tex_type)
{
struct vigs_winsys_gl_surface *ws_sfc;
ws_sfc->tex_internalformat = tex_internalformat;
ws_sfc->tex_format = tex_format;
ws_sfc->tex_type = tex_type;
- ws_sfc->tex_bpp = tex_bpp;
ws_sfc->backend = backend;
ws_sfc->parent = parent;
gl_backend->DisableClientState(GL_TEXTURE_COORD_ARRAY);
gl_backend->DisableClientState(GL_VERTEX_ARRAY);
- gl_backend->PixelStorei(GL_PACK_ALIGNMENT, ws_sfc->tex_bpp);
+ gl_backend->PixelStorei(GL_PACK_ALIGNMENT, 1);
gl_backend->ReadPixels(0, 0, sfc_w, sfc_h,
ws_sfc->tex_format, ws_sfc->tex_type,
pixels);
GL_TEXTURE_2D, ws_sfc->tex, 0);
gl_backend->PixelZoom(1.0f, -1.0f);
- gl_backend->PixelStorei(GL_UNPACK_ALIGNMENT, ws_sfc->tex_bpp);
+ gl_backend->PixelStorei(GL_UNPACK_ALIGNMENT, 1);
gl_backend->PixelStorei(GL_UNPACK_ROW_LENGTH, ws_sfc->base.base.width);
for (i = 0; i < num_entries; ++i) {
height,
tex_internalformat,
tex_format,
- tex_type,
- tex_bpp);
+ tex_type);
vigs_surface_init(&gl_sfc->base,
&ws_sfc->base.base,
pop_attrib = true;
- gles_driver->PixelStorei(GL_PACK_ALIGNMENT,
- ((bpp == 4) ? 4 : 1));
+ gles_driver->PixelStorei(GL_PACK_ALIGNMENT, 1);
gles_driver->ReadPixels(0, 0,
width, height, format, GL_UNSIGNED_BYTE,