X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2d.cpp;fp=source%2Fcore%2Ftexture2d.cpp;h=d2addda70fc4d6e35de11e2df472bf98b89d9940;hp=0e76128c7bc5666da5828f11fe98f5398ecaf380;hb=efb45a6851563cdb8077b6aad3ab92d4006d8790;hpb=4fb346536bfefd612635a248f558b1f1471deae6 diff --git a/source/core/texture2d.cpp b/source/core/texture2d.cpp index 0e76128c..d2addda7 100644 --- a/source/core/texture2d.cpp +++ b/source/core/texture2d.cpp @@ -106,7 +106,7 @@ void Texture2D::image(unsigned level, const void *data) } PixelComponents comp = get_components(storage_fmt); - DataType type = get_component_type(storage_fmt); + GLenum type = get_gl_type(get_component_type(storage_fmt)); glTexImage2D(target, level, storage_fmt, w, h, 0, comp, type, data); allocated |= 1<