X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fimage.cpp;h=f1180c39e1664491fd239560d59f251b8194074a;hp=5dcb2e3f5b84b8e727a98b3aa6180c3642b35a24;hb=b3234ca0277c5e282a2a0a2558b58edb25750653;hpb=cc433448b71025256bdd44a569c353d98e0935f1 diff --git a/source/image.cpp b/source/image.cpp index 5dcb2e3..f1180c3 100644 --- a/source/image.cpp +++ b/source/image.cpp @@ -76,15 +76,15 @@ void Image::rebuild_special(const Part &part) GL::MeshBuilder bld(part_cache.create_mesh(part, *image)); bld.color(1.0f, 1.0f, 1.0f); - bld.begin(GL::QUADS); + bld.begin(GL::TRIANGLE_STRIP); + bld.texcoord(0.0, 1.0); + bld.vertex(rgeom.x, rgeom.y+rgeom.h); bld.texcoord(0.0, 0.0); bld.vertex(rgeom.x, rgeom.y); - bld.texcoord(1.0, 0.0); - bld.vertex(rgeom.x+rgeom.w, rgeom.y); bld.texcoord(1.0, 1.0); bld.vertex(rgeom.x+rgeom.w, rgeom.y+rgeom.h); - bld.texcoord(0.0, 1.0); - bld.vertex(rgeom.x, rgeom.y+rgeom.h); + bld.texcoord(1.0, 0.0); + bld.vertex(rgeom.x+rgeom.w, rgeom.y); bld.end(); } }