X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture3d.cpp;h=1681f83c6f528b949be627adb9fddf311556806a;hb=86721a55699193e63c76e8a0a7b0ced0416c1cce;hp=03c58d0afdf05e6273cfbbea2892ea2d7e067ca9;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/core/texture3d.cpp b/source/core/texture3d.cpp index 03c58d0a..1681f83c 100644 --- a/source/core/texture3d.cpp +++ b/source/core/texture3d.cpp @@ -94,7 +94,7 @@ void Texture3D::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)); glTexImage3D(target, level, storage_fmt, width, height, depth, 0, comp, type, data); allocated |= 1<