]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/partcache.cpp
Adjust things to conform to changes in other libraries
[libs/gltk.git] / source / partcache.cpp
index 3c3fbb169e3e2c20b707f20b6bdb25f656fc94fd..3b944572a45abb8874b06a7f4313e569fab123dd 100644 (file)
@@ -75,7 +75,7 @@ GL::Mesh &PartCache::create_mesh(const Part &part, const GL::Texture2D &tex)
        {
                current = parts.insert(next, CachedPart());
                current->texture = &tex;
-               current->mesh = new GL::Mesh((GL::TEXCOORD2, GL::COLOR4_UBYTE, GL::VERTEX2));
+               current->mesh = new GL::Mesh((GL::TEXCOORD2, GL::COLOR4,GL::UNSIGNED_BYTE, GL::VERTEX2));
        }
        else
                current->mesh->clear();