X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Ftexture2d.cpp;h=0f06790c06056f419f6f50766db8a4eb975793f3;hb=2e7f0e8b226fdeea3306e2e0eef22a8f200ae16b;hp=d2addda70fc4d6e35de11e2df472bf98b89d9940;hpb=160293feec7b0b976856685153cd24c7f1ce9492;p=libs%2Fgl.git diff --git a/source/core/texture2d.cpp b/source/core/texture2d.cpp index d2addda7..0f06790c 100644 --- a/source/core/texture2d.cpp +++ b/source/core/texture2d.cpp @@ -290,12 +290,7 @@ bool Texture2D::AsyncLoader::process() } if(!texture.id) - { - if(ARB_direct_state_access) - glCreateTextures(texture.target, 1, &texture.id); - else - glGenTextures(1, &texture.id); - } + texture.generate_id(); texture.image(image, 0, true); }