X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2d.cpp;h=d2addda70fc4d6e35de11e2df472bf98b89d9940;hb=86721a55699193e63c76e8a0a7b0ced0416c1cce;hp=0e76128c7bc5666da5828f11fe98f5398ecaf380;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git 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<