X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture3d.cpp;fp=source%2Fcore%2Ftexture3d.cpp;h=1681f83c6f528b949be627adb9fddf311556806a;hp=03c58d0afdf05e6273cfbbea2892ea2d7e067ca9;hb=efb45a6851563cdb8077b6aad3ab92d4006d8790;hpb=4fb346536bfefd612635a248f558b1f1471deae6 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<