text: gltex: fix rendering whithout GL_EXT_unpack_subimage
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 21 Aug 2012 12:53:59 +0000 (14:53 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 21 Aug 2012 12:53:59 +0000 (14:53 +0200)
commit5f59c7953c9f3c0d2d5d1140521be686efd6ee1f
tree75973445753b61c2b27a54ce36605cfb8cc0d22b
parent7ad970c1f4abe6efa3bf48db093c3f750030e1f2
text: gltex: fix rendering whithout GL_EXT_unpack_subimage

OpenGLESv2 doesn't support specifying stride values for textures without
this extension. So allocate a temporary storage when uploading values
which have a default-stride.

This was reported by "towolf / Tobias Wolf" on github:
  https://github.com/dvdhrm/kmscon/issues/17

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/text_gltex.c